diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-31 03:36:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-31 03:36:01 +0000 |
commit | aaa210cf82141968b59eff28ae448d0e383c46a3 (patch) | |
tree | 462e3512560c3be320165503110285c71c8436ed /lib/CodeGen/CodeGenModule.cpp | |
parent | aec586056d8670c99ba7c4833be13e4eb123cddb (diff) |
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
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index c44b311972..65aceb741a 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -1246,8 +1246,8 @@ static void ReplaceUsesOfNonProtoTypeWithRealFunction(llvm::GlobalValue *Old, CI->replaceAllUsesWith(NewCall); // Copy any custom metadata attached with CI. - if (llvm::MDNode *DbgNode = CI->getMetadata("dbg")) - NewCall->setMetadata("dbg", DbgNode); + if (llvm::MDNode *DbgNode = CI->getDbgMetadata()) + NewCall->setDbgMetadata(DbgNode); CI->eraseFromParent(); } } |