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 | e896d98548b02223c7740d807a0aa6e20fba7079 (patch) | |
tree | 3cd6ed57b2f97b2dea47294eeef95ae68dbde28f /lib/CodeGen/CGStmt.cpp | |
parent | d87df37e0adaba0d5e33da7b1a14d7f1d94c5eef (diff) |
Add CodeGen support for the nodebug attribute.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64445 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | lib/CodeGen/CGStmt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index d23547fb36..1d28708c46 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -28,7 +28,7 @@ using namespace CodeGen; //===----------------------------------------------------------------------===// void CodeGenFunction::EmitStopPoint(const Stmt *S) { - if (CGDebugInfo *DI = CGM.getDebugInfo()) { + if (CGDebugInfo *DI = getDebugInfo()) { DI->setLocation(S->getLocStart()); DI->EmitStopPoint(CurFn, Builder); } @@ -124,7 +124,7 @@ bool CodeGenFunction::EmitSimpleStmt(const Stmt *S) { RValue CodeGenFunction::EmitCompoundStmt(const CompoundStmt &S, bool GetLast, llvm::Value *AggLoc, bool isAggVol) { - CGDebugInfo *DI = CGM.getDebugInfo(); + CGDebugInfo *DI = getDebugInfo(); if (DI) { EnsureInsertPoint(); DI->setLocation(S.getLBracLoc()); |