diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-04-08 13:50:42 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-04-08 13:50:42 +0000 |
commit | f042f97d7e6fbaa73a26f494ed642f2e4e2a948d (patch) | |
tree | 2b82705c1fa93d5fdf74a932091717ac7bb7f5f4 /lib/Target/CBackend | |
parent | e964af6ff8068cacd880a93d579adb4b714d37c4 (diff) | |
download | external_llvm-f042f97d7e6fbaa73a26f494ed642f2e4e2a948d.zip external_llvm-f042f97d7e6fbaa73a26f494ed642f2e4e2a948d.tar.gz external_llvm-f042f97d7e6fbaa73a26f494ed642f2e4e2a948d.tar.bz2 |
use abstract interface in two more places
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100762 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index c87fadb..5e16a08 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -2858,7 +2858,7 @@ void CWriter::lowerIntrinsics(Function &F) { } 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 @@ static std::string gccifyAsm(std::string asmstr) { //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; |