mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
conditionalize on CallInst::ArgOffset
llvm-svn: 107766
This commit is contained in:
parent
886389fe30
commit
a01cb6f114
@ -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…
Reference in New Issue
Block a user