mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 21:50:40 +00:00
Use getDebugLoc and setDebugLoc instead of getDbgMetadata and setDbgMetadata,
avoiding MDNode overhead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108909 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e5b2b88381
commit
bda0252639
@ -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