diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-19 22:14:12 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-19 22:14:12 +0000 |
commit | 9eb38b233e5353a80c7d99676a08fe87d87debdb (patch) | |
tree | 1a0eebc56e9ddfdbec3672869a1bcc7d0ea686c9 /lib/LTO/LTOCodeGenerator.cpp | |
parent | c28016e4131bdd50c23510adb3a0254b7fb5adc6 (diff) | |
download | llvm-9eb38b233e5353a80c7d99676a08fe87d87debdb.tar.gz llvm-9eb38b233e5353a80c7d99676a08fe87d87debdb.tar.bz2 llvm-9eb38b233e5353a80c7d99676a08fe87d87debdb.tar.xz |
Set missing options in LTOCodeGenerator::setTargetOptions.
Patch by Tom Roeder, I just added the test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211317 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/LTO/LTOCodeGenerator.cpp')
-rw-r--r-- | lib/LTO/LTOCodeGenerator.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/LTO/LTOCodeGenerator.cpp b/lib/LTO/LTOCodeGenerator.cpp index 9009958613..2772676c8e 100644 --- a/lib/LTO/LTOCodeGenerator.cpp +++ b/lib/LTO/LTOCodeGenerator.cpp @@ -141,6 +141,11 @@ void LTOCodeGenerator::setTargetOptions(TargetOptions options) { Options.TrapFuncName = options.TrapFuncName; Options.PositionIndependentExecutable = options.PositionIndependentExecutable; Options.UseInitArray = options.UseInitArray; + Options.DataSections = options.DataSections; + Options.FunctionSections = options.FunctionSections; + + Options.MCOptions = options.MCOptions; + Options.JTType = options.JTType; } void LTOCodeGenerator::setDebugInfo(lto_debug_model debug) { |