[llvm-commits] [llvm] r108909 - /llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp
Dan Gohman
gohman at apple.com
Tue Jul 20 13:09:07 PDT 2010
Author: djg
Date: Tue Jul 20 15:09:07 2010
New Revision: 108909
URL: http://llvm.org/viewvc/llvm-project?rev=108909&view=rev
Log:
Use getDebugLoc and setDebugLoc instead of getDbgMetadata and setDbgMetadata,
avoiding MDNode overhead.
Modified:
llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp
Modified: llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp?rev=108909&r1=108908&r2=108909&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp Tue Jul 20 15:09:07 2010
@@ -250,8 +250,7 @@
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 @@
if (cast<CallInst>(Call)->isTailCall())
cast<CallInst>(New)->setTailCall();
}
- if (MDNode *N = Call->getDbgMetadata())
- New->setDbgMetadata(N);
+ New->setDebugLoc(Call->getDebugLoc());
Args.clear();
More information about the llvm-commits
mailing list