diff options
author | Anders Carlsson <andersca@mac.com> | 2009-02-13 08:11:52 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-02-13 08:11:52 +0000 |
commit | 63784f4e5e125b7a81c92c2cf176797ce67b2e6d (patch) | |
tree | f9bc53d71e0ef847ddec707277bac9eff3c7744d /clang/lib/CodeGen/CGDecl.cpp | |
parent | 333db7abbd51dfd8c56bcbe3febe0abef0c31d0d (diff) | |
download | bcm5719-llvm-63784f4e5e125b7a81c92c2cf176797ce67b2e6d.tar.gz bcm5719-llvm-63784f4e5e125b7a81c92c2cf176797ce67b2e6d.zip |
Add CodeGen support for the nodebug attribute.
llvm-svn: 64445
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 3b912ce3d65..abcd547be99 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -144,7 +144,7 @@ void CodeGenFunction::EmitStaticBlockVarDecl(const VarDecl &D) { DMEntry = llvm::ConstantExpr::getBitCast(GV, LPtrTy); // Emit global variable debug descriptor for static vars. - CGDebugInfo *DI = CGM.getDebugInfo(); + CGDebugInfo *DI = getDebugInfo(); if(DI) { DI->setLocation(D.getLocation()); DI->EmitGlobalVariable(static_cast<llvm::GlobalVariable *>(GV), &D); @@ -224,7 +224,7 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D) { DMEntry = DeclPtr; // Emit debug info for local var declaration. - if (CGDebugInfo *DI = CGM.getDebugInfo()) { + if (CGDebugInfo *DI = getDebugInfo()) { DI->setLocation(D.getLocation()); DI->EmitDeclareOfAutoVariable(&D, DeclPtr, Builder); } @@ -299,7 +299,7 @@ void CodeGenFunction::EmitParmDecl(const VarDecl &D, llvm::Value *Arg) { DMEntry = DeclPtr; // Emit debug info for param declaration. - if (CGDebugInfo *DI = CGM.getDebugInfo()) { + if (CGDebugInfo *DI = getDebugInfo()) { DI->setLocation(D.getLocation()); DI->EmitDeclareOfArgVariable(&D, DeclPtr, Builder); } |