Index: lib/CodeGen/CodeGenModule.cpp |
=================================================================== |
--- lib/CodeGen/CodeGenModule.cpp (revision 156159) |
+++ lib/CodeGen/CodeGenModule.cpp (working copy) |
@@ -1606,7 +1606,8 @@ |
// Emit global variable debug information. |
if (CGDebugInfo *DI = getModuleDebugInfo()) |
- DI->EmitGlobalVariable(GV, D); |
+ if (getCodeGenOpts().DebugInfo >= CodeGenOptions::LimitedDebugInfo) |
+ DI->EmitGlobalVariable(GV, D); |
} |
llvm::GlobalValue::LinkageTypes |