1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Use getDebugLoc and setDebugLoc instead of getDbgMetadata and setDbgMetadata,

avoiding MDNode overhead.

llvm-svn: 108909
This commit is contained in:
Dan Gohman 2010-07-20 20:09:07 +00:00
parent 2acdd8ad4b
commit d8e1fd258f

View File

@ -250,8 +250,7 @@ bool DAE::DeleteDeadVarargs(Function &Fn) {
if (cast<CallInst>(Call)->isTailCall())
cast<CallInst>(New)->setTailCall();
}
if (MDNode *N = Call->getDbgMetadata())
New->setDbgMetadata(N);
New->setDebugLoc(Call->getDebugLoc());
Args.clear();
@ -780,8 +779,7 @@ bool DAE::RemoveDeadStuffFromFunction(Function *F) {
if (cast<CallInst>(Call)->isTailCall())
cast<CallInst>(New)->setTailCall();
}
if (MDNode *N = Call->getDbgMetadata())
New->setDbgMetadata(N);
New->setDebugLoc(Call->getDebugLoc());
Args.clear();