[llvm-commits] [llvm] r100762 - /llvm/trunk/lib/Target/CBackend/CBackend.cpp
Gabor Greif
ggreif at gmail.com
Thu Apr 8 06:50:42 PDT 2010
Author: ggreif
Date: Thu Apr 8 08:50:42 2010
New Revision: 100762
URL: http://llvm.org/viewvc/llvm-project?rev=100762&view=rev
Log:
use abstract interface in two more places
Modified:
llvm/trunk/lib/Target/CBackend/CBackend.cpp
Modified: llvm/trunk/lib/Target/CBackend/CBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CBackend/CBackend.cpp?rev=100762&r1=100761&r2=100762&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CBackend/CBackend.cpp (original)
+++ llvm/trunk/lib/Target/CBackend/CBackend.cpp Thu Apr 8 08:50:42 2010
@@ -2858,7 +2858,7 @@
}
void CWriter::visitCallInst(CallInst &I) {
- if (isa<InlineAsm>(I.getOperand(0)))
+ if (isa<InlineAsm>(I.getCalledValue()))
return visitInlineAsm(I);
bool WroteCallee = false;
@@ -3165,7 +3165,7 @@
//TODO: assumptions about what consume arguments from the call are likely wrong
// handle communitivity
void CWriter::visitInlineAsm(CallInst &CI) {
- InlineAsm* as = cast<InlineAsm>(CI.getOperand(0));
+ InlineAsm* as = cast<InlineAsm>(CI.getCalledValue());
std::vector<InlineAsm::ConstraintInfo> Constraints = as->ParseConstraints();
std::vector<std::pair<Value*, int> > ResultVals;
More information about the llvm-commits
mailing list