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; }
bool disableGVNLoadPRE,
std::string &errMsg);
- bool shouldInternalize() const {
- return InternalizeStrategy != LTO_INTERNALIZE_NONE;
- }
-
- bool shouldOnlyInternalizeHidden() const {
- return InternalizeStrategy == LTO_INTERNALIZE_HIDDEN;
- }
-
private:
void initializeLTOPasses();
bool EmitDwarfDebugInfo;
bool ScopeRestrictionsDone;
lto_codegen_model CodeModel;
- lto_internalize_strategy InternalizeStrategy;
StringSet MustPreserveSymbols;
StringSet AsmUndefinedRefs;
llvm::MemoryBuffer *NativeObjectFile;