Switch CodeGenOptions over to a .def file, like we do with LangOptions.
llvm-svn: 166497
This commit is contained in:
@@ -110,7 +110,7 @@ CodeGenModule::CodeGenModule(ASTContext &C, const CodeGenOptions &CGO,
|
||||
|
||||
// If debug info or coverage generation is enabled, create the CGDebugInfo
|
||||
// object.
|
||||
if (CodeGenOpts.DebugInfo != CodeGenOptions::NoDebugInfo ||
|
||||
if (CodeGenOpts.getDebugInfo() != CodeGenOptions::NoDebugInfo ||
|
||||
CodeGenOpts.EmitGcovArcs ||
|
||||
CodeGenOpts.EmitGcovNotes)
|
||||
DebugInfo = new CGDebugInfo(*this);
|
||||
@@ -293,7 +293,7 @@ void CodeGenModule::setTLSMode(llvm::GlobalVariable *GV,
|
||||
assert(D.isThreadSpecified() && "setting TLS mode on non-TLS var!");
|
||||
|
||||
llvm::GlobalVariable::ThreadLocalMode TLM;
|
||||
TLM = GetLLVMTLSModel(CodeGenOpts.DefaultTLSModel);
|
||||
TLM = GetLLVMTLSModel(CodeGenOpts.getDefaultTLSModel());
|
||||
|
||||
// Override the TLS model if it is explicitly specified.
|
||||
if (D.hasAttr<TLSModelAttr>()) {
|
||||
@@ -1750,7 +1750,7 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D) {
|
||||
|
||||
// Emit global variable debug information.
|
||||
if (CGDebugInfo *DI = getModuleDebugInfo())
|
||||
if (getCodeGenOpts().DebugInfo >= CodeGenOptions::LimitedDebugInfo)
|
||||
if (getCodeGenOpts().getDebugInfo() >= CodeGenOptions::LimitedDebugInfo)
|
||||
DI->EmitGlobalVariable(GV, D);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user