summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-11-05 19:13:29 +0000
committerDevang Patel <dpatel@apple.com>2009-11-05 19:13:29 +0000
commitba3c6681f000e6af1f11b4c212cc9a6e5e335985 (patch)
tree164e04cb8bfdcaa61b17c39b7613d6dc0a110e2a /clang/lib/CodeGen
parent17feb2a9eedfbf48a8d90fc7dc8e1731cf1a539e (diff)
downloadbcm5719-llvm-ba3c6681f000e6af1f11b4c212cc9a6e5e335985.tar.gz
bcm5719-llvm-ba3c6681f000e6af1f11b4c212cc9a6e5e335985.zip
Enable debug info for global variables at -O1+
llvm-svn: 86156
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 1b01e1537b4..714dde059be 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -1362,13 +1362,6 @@ void CGDebugInfo::EmitDeclareOfArgVariable(const VarDecl *Decl, llvm::Value *AI,
void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var,
const VarDecl *Decl) {
- // Do not emit variable debug information while generating optimized code.
- // The llvm optimizer and code generator are not yet ready to support
- // optimized code debugging.
- const CompileOptions &CO = M->getCompileOpts();
- if (CO.OptimizationLevel)
- return;
-
// Create global variable debug descriptor.
llvm::DICompileUnit Unit = getOrCreateCompileUnit(Decl->getLocation());
SourceManager &SM = M->getContext().getSourceManager();
OpenPOWER on IntegriCloud