diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-04-09 05:26:48 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-04-09 05:26:48 +0000 |
commit | 3029a0c56a1e4249746ff6b54d825e88fee6cddf (patch) | |
tree | 8c20a7ce9b751377e08697c8cfd7dba23d18861e /tools/lto/LTOCodeGenerator.h | |
parent | ae1bec52f7a0e8b719e74f3575ec238094ff7599 (diff) | |
download | external_llvm-3029a0c56a1e4249746ff6b54d825e88fee6cddf.zip external_llvm-3029a0c56a1e4249746ff6b54d825e88fee6cddf.tar.gz external_llvm-3029a0c56a1e4249746ff6b54d825e88fee6cddf.tar.bz2 |
Add a hook to turn on the internalize pass through the LTO interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154306 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto/LTOCodeGenerator.h')
-rw-r--r-- | tools/lto/LTOCodeGenerator.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lto/LTOCodeGenerator.h b/tools/lto/LTOCodeGenerator.h index 3081b7d..bac3e6e 100644 --- a/tools/lto/LTOCodeGenerator.h +++ b/tools/lto/LTOCodeGenerator.h @@ -54,6 +54,8 @@ struct LTOCodeGenerator { const void *compile(size_t *length, std::string &errMsg); void setCodeGenDebugOptions(const char *opts); + void enableInternalizePass() { _runInternalizePass = true; } + private: bool generateObjectFile(llvm::raw_ostream &out, std::string &errMsg); void applyScopeRestrictions(); @@ -70,6 +72,7 @@ private: llvm::TargetMachine* _target; bool _emitDwarfDebugInfo; bool _scopeRestrictionsDone; + bool _runInternalizePass; lto_codegen_model _codeModel; StringSet _mustPreserveSymbols; StringSet _asmUndefinedRefs; |