diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm-c/lto.h | 19 | ||||
-rw-r--r-- | include/llvm/LTO/LTOCodeGenerator.h | 10 | ||||
-rw-r--r-- | include/llvm/Transforms/IPO.h | 9 |
3 files changed, 2 insertions, 36 deletions
diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h index 87904c208c..049c4d7517 100644 --- a/include/llvm-c/lto.h +++ b/include/llvm-c/lto.h @@ -82,15 +82,6 @@ typedef enum { LTO_CODEGEN_PIC_MODEL_DYNAMIC_NO_PIC = 2 } lto_codegen_model; -/** - * \since LTO_API_VERSION=6 - */ -typedef enum { - LTO_INTERNALIZE_FULL = 0, - LTO_INTERNALIZE_NONE = 1, - LTO_INTERNALIZE_HIDDEN = 2 -} lto_internalize_strategy; - /** opaque reference to a loaded object module */ typedef struct LTOModule* lto_module_t; @@ -403,16 +394,6 @@ lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args, int nargs); /** - * Sets the strategy to use during internalize. Default strategy is - * LTO_INTERNALIZE_FULL. - * - * \since LTO_API_VERSION=6 - */ -extern void -lto_codegen_set_internalize_strategy(lto_code_gen_t cg, - lto_internalize_strategy); - -/** * Tells LTO optimization passes that this symbol must be preserved * because it is referenced by native code or a command line option. * diff --git a/include/llvm/LTO/LTOCodeGenerator.h b/include/llvm/LTO/LTOCodeGenerator.h index ee2b208891..543399157b 100644 --- a/include/llvm/LTO/LTOCodeGenerator.h +++ b/include/llvm/LTO/LTOCodeGenerator.h @@ -71,7 +71,6 @@ struct LTOCodeGenerator { void setTargetOptions(llvm::TargetOptions options); void setDebugInfo(lto_debug_model); void setCodePICModel(lto_codegen_model); - void setInternalizeStrategy(lto_internalize_strategy); void setCpu(const char *mCpu) { MCpu = mCpu; } @@ -118,14 +117,6 @@ struct LTOCodeGenerator { void setDiagnosticHandler(lto_diagnostic_handler_t, void *); - bool shouldInternalize() const { - return InternalizeStrategy != LTO_INTERNALIZE_NONE; - } - - bool shouldOnlyInternalizeHidden() const { - return InternalizeStrategy == LTO_INTERNALIZE_HIDDEN; - } - private: void initializeLTOPasses(); @@ -154,7 +145,6 @@ private: bool EmitDwarfDebugInfo; bool ScopeRestrictionsDone; lto_codegen_model CodeModel; - lto_internalize_strategy InternalizeStrategy; StringSet MustPreserveSymbols; StringSet AsmUndefinedRefs; llvm::MemoryBuffer *NativeObjectFile; diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h index ae9d5c1d09..334fb1cc4d 100644 --- a/include/llvm/Transforms/IPO.h +++ b/include/llvm/Transforms/IPO.h @@ -112,19 +112,14 @@ Pass *createPruneEHPass(); //// /// The symbols in \p ExportList are never internalized. /// -/// When OnlyHidden=true, only symbols with hidden visibility are internalized. -/// /// The symbol in DSOList are internalized if it is safe to drop them from /// the symbol table. /// /// Note that commandline options that are used with the above function are not /// used now! -ModulePass *createInternalizePass(ArrayRef<const char *> ExportList, - bool OnlyHidden = false); +ModulePass *createInternalizePass(ArrayRef<const char *> ExportList); /// createInternalizePass - Same as above, but with an empty exportList. -ModulePass *createInternalizePass(bool OnlyHidden = false); -/// createInternalizePass - Resolve ambiguity when passed a const char *. -ModulePass *createInternalizePass(const char *SingleExport); +ModulePass *createInternalizePass(); //===----------------------------------------------------------------------===// /// createDeadArgEliminationPass - This pass removes arguments from functions |