[llvm] r196473 - Use isIntrinsic() instead of checking for "llvm."
Matt Arsenault
Matthew.Arsenault at amd.com
Wed Dec 4 22:05:44 PST 2013
Author: arsenm
Date: Thu Dec 5 00:05:43 2013
New Revision: 196473
URL: http://llvm.org/viewvc/llvm-project?rev=196473&view=rev
Log:
Use isIntrinsic() instead of checking for "llvm."
Modified:
llvm/trunk/lib/IR/AsmWriter.cpp
Modified: llvm/trunk/lib/IR/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/AsmWriter.cpp?rev=196473&r1=196472&r2=196473&view=diff
==============================================================================
--- llvm/trunk/lib/IR/AsmWriter.cpp (original)
+++ llvm/trunk/lib/IR/AsmWriter.cpp Thu Dec 5 00:05:43 2013
@@ -525,7 +525,7 @@ void SlotTracker::processFunction() {
// optimizer.
if (const CallInst *CI = dyn_cast<CallInst>(I)) {
if (Function *F = CI->getCalledFunction())
- if (F->getName().startswith("llvm."))
+ if (F->isIntrinsic())
for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i)
if (MDNode *N = dyn_cast_or_null<MDNode>(I->getOperand(i)))
CreateMetadataSlot(N);
More information about the llvm-commits
mailing list