X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FLTO%2FLTOCodeGenerator.h;h=33ac009c796e6e522dd9be3ce3aa41b0749dbd8c;hb=c0346c0fdc7a30c85cd9c00801522ebedd83abe5;hp=1676530a972e8224da3686ec6d343dd6159601f5;hpb=19110099c04a831dd1b47ee8084e48f516712d95;p=oota-llvm.git diff --git a/include/llvm/LTO/LTOCodeGenerator.h b/include/llvm/LTO/LTOCodeGenerator.h index 1676530a972..33ac009c796 100644 --- a/include/llvm/LTO/LTOCodeGenerator.h +++ b/include/llvm/LTO/LTOCodeGenerator.h @@ -77,7 +77,7 @@ struct LTOCodeGenerator { void setCpu(const char *mCpu) { MCpu = mCpu; } void setAttr(const char *mAttr) { MAttr = mAttr; } - void setOptLevel(unsigned optLevel) { OptLevel = optLevel; } + void setOptLevel(unsigned optLevel); void setShouldInternalize(bool Value) { ShouldInternalize = Value; } void setShouldEmbedUselists(bool Value) { ShouldEmbedUselists = Value; } @@ -166,10 +166,12 @@ private: StringSet MustPreserveSymbols; StringSet AsmUndefinedRefs; std::vector CodegenOptions; + std::string FeatureStr; std::string MCpu; std::string MAttr; std::string NativeObjectPath; TargetOptions Options; + CodeGenOpt::Level CGOptLevel = CodeGenOpt::Default; unsigned OptLevel = 2; lto_diagnostic_handler_t DiagHandler = nullptr; void *DiagContext = nullptr;