summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmt.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-02-13 08:11:52 +0000
committerAnders Carlsson <andersca@mac.com>2009-02-13 08:11:52 +0000
commit63784f4e5e125b7a81c92c2cf176797ce67b2e6d (patch)
treef9bc53d71e0ef847ddec707277bac9eff3c7744d /clang/lib/CodeGen/CGStmt.cpp
parent333db7abbd51dfd8c56bcbe3febe0abef0c31d0d (diff)
downloadbcm5719-llvm-63784f4e5e125b7a81c92c2cf176797ce67b2e6d.tar.gz
bcm5719-llvm-63784f4e5e125b7a81c92c2cf176797ce67b2e6d.zip
Add CodeGen support for the nodebug attribute.
llvm-svn: 64445
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r--clang/lib/CodeGen/CGStmt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp
index d23547fb36a..1d28708c46d 100644
--- a/clang/lib/CodeGen/CGStmt.cpp
+++ b/clang/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());
OpenPOWER on IntegriCloud