summaryrefslogtreecommitdiff
path: root/tools/lto/LTOModule.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-08-06 21:34:54 +0000
committerBill Wendling <isanbard@gmail.com>2012-08-06 21:34:54 +0000
commit9ac0aaa6afe4162b4db32833f9f176ac05ce6f8f (patch)
tree7e73edd47cc7e1072225948ca0803c30049a1e89 /tools/lto/LTOModule.h
parentfc54d9e47a1276650f14f38e7d037c9b58c8dc2d (diff)
downloadllvm-9ac0aaa6afe4162b4db32833f9f176ac05ce6f8f.tar.gz
llvm-9ac0aaa6afe4162b4db32833f9f176ac05ce6f8f.tar.bz2
llvm-9ac0aaa6afe4162b4db32833f9f176ac05ce6f8f.tar.xz
Add a way to grab the target options from the LTO command line.
When the command line target options were removed from the LLVM libraries, LTO lost its ability to specify things like `-disable-fp-elim'. Add this back by adding the command line variables to the `lto' project. <rdar://problem/12038729> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161353 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto/LTOModule.h')
-rw-r--r--tools/lto/LTOModule.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/lto/LTOModule.h b/tools/lto/LTOModule.h
index cafb927abf..8e52206b5b 100644
--- a/tools/lto/LTOModule.h
+++ b/tools/lto/LTOModule.h
@@ -29,6 +29,7 @@ namespace llvm {
class Function;
class GlobalValue;
class MemoryBuffer;
+ class TargetOptions;
class Value;
}
@@ -126,6 +127,10 @@ public:
return _asm_undefines;
}
+ /// getTargetOptions - Fill the TargetOptions object with the options
+ /// specified on the command line.
+ static void getTargetOptions(llvm::TargetOptions &Options);
+
private:
/// parseSymbols - Parse the symbols from the module and model-level ASM and
/// add them to either the defined or undefined lists.