summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-31 03:36:01 +0000
committerChris Lattner <sabre@nondot.org>2010-03-31 03:36:01 +0000
commitbe49c03ff49d31c5039e2ee5e0e8fe71ab8cc455 (patch)
tree3b9837d49d08fe5dc5f92473b5691c48108029cd /clang/lib/CodeGen/CGDebugInfo.cpp
parent009de335acea261a3b4f5b46e83e53586b46d92e (diff)
downloadbcm5719-llvm-be49c03ff49d31c5039e2ee5e0e8fe71ab8cc455.tar.gz
bcm5719-llvm-be49c03ff49d31c5039e2ee5e0e8fe71ab8cc455.zip
use the new optimized debug info metadata accessors. In
addition to the inherent win, this eliminates the pointless cost of going through the name -> mdkind stringmap that we were paying. llvm-svn: 99983
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 426f1551728..fc7c0c52ebb 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -1602,7 +1602,7 @@ void CGDebugInfo::EmitDeclare(const VarDecl *VD, unsigned Tag,
llvm::DILocation DO(NULL);
llvm::DILocation DL = DebugFactory.CreateLocation(Line, Column, DS, DO);
- Call->setMetadata("dbg", DL.getNode());
+ Call->setDbgMetadata(DL.getNode());
}
/// EmitDeclare - Emit local variable declaration debug info.
@@ -1670,7 +1670,7 @@ void CGDebugInfo::EmitDeclare(const BlockDeclRefExpr *BDRE, unsigned Tag,
llvm::DILocation DL =
DebugFactory.CreateLocation(Line, PLoc.getColumn(), DS, DO);
- Call->setMetadata("dbg", DL.getNode());
+ Call->setDbgMetadata(DL.getNode());
}
void CGDebugInfo::EmitDeclareOfAutoVariable(const VarDecl *VD,
OpenPOWER on IntegriCloud