forked from OSchip/llvm-project
parent
59d9a5c209
commit
90e80efe6b
llvm/include/llvm/Support
|
@ -256,14 +256,14 @@ private:
|
||||||
/// Returns the operand number of the first argument
|
/// Returns the operand number of the first argument
|
||||||
unsigned getArgumentOffset() const {
|
unsigned getArgumentOffset() const {
|
||||||
if (isCall())
|
if (isCall())
|
||||||
return 1; // Skip Function (ATM)
|
return CallInst::ArgOffset; // Skip Function (ATM)
|
||||||
else
|
else
|
||||||
return 0; // Args are at the front
|
return 0; // Args are at the front
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned getArgumentEndOffset() const {
|
unsigned getArgumentEndOffset() const {
|
||||||
if (isCall())
|
if (isCall())
|
||||||
return 0; // Unchanged (ATM)
|
return CallInst::ArgOffset ? 0 : 1; // Unchanged (ATM)
|
||||||
else
|
else
|
||||||
return 3; // Skip BB, BB, Function
|
return 3; // Skip BB, BB, Function
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue