From aaa210cf82141968b59eff28ae448d0e383c46a3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 31 Mar 2010 03:36:01 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99983 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGDebugInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/CGDebugInfo.cpp') diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 426f155172..fc7c0c52eb 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/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, -- cgit v1.2.3-18-g5258