mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
conditionalize on CallInst::ArgOffset
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107766 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dc4f391773
commit
392a8867bb
@ -256,14 +256,14 @@ private:
|
||||
/// Returns the operand number of the first argument
|
||||
unsigned getArgumentOffset() const {
|
||||
if (isCall())
|
||||
return 1; // Skip Function (ATM)
|
||||
return CallInst::ArgOffset; // Skip Function (ATM)
|
||||
else
|
||||
return 0; // Args are at the front
|
||||
}
|
||||
|
||||
unsigned getArgumentEndOffset() const {
|
||||
if (isCall())
|
||||
return 0; // Unchanged (ATM)
|
||||
return CallInst::ArgOffset ? 0 : 1; // Unchanged (ATM)
|
||||
else
|
||||
return 3; // Skip BB, BB, Function
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user