mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
use abstract interface in two more places
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100762 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e964af6ff8
commit
f042f97d7e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user