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:
parent
2acdd8ad4b
commit
d8e1fd258f
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user