mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
Update comments, now that CPR's are gone, inline the methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17957 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -481,10 +481,12 @@ public:
|
|||||||
virtual CallInst *clone() const;
|
virtual CallInst *clone() const;
|
||||||
bool mayWriteToMemory() const { return true; }
|
bool mayWriteToMemory() const { return true; }
|
||||||
|
|
||||||
// FIXME: These methods should be inline once we eliminate
|
/// getCalledFunction - Return the function being called by this instruction
|
||||||
// ConstantPointerRefs!
|
/// if it is a direct call. If it is a call through a function pointer,
|
||||||
const Function *getCalledFunction() const;
|
/// return null.
|
||||||
Function *getCalledFunction();
|
Function *getCalledFunction() const {
|
||||||
|
return dyn_cast<Function>(Operands[0]);
|
||||||
|
}
|
||||||
|
|
||||||
// getCalledValue - Get a pointer to a method that is invoked by this inst.
|
// getCalledValue - Get a pointer to a method that is invoked by this inst.
|
||||||
inline const Value *getCalledValue() const { return Operands[0]; }
|
inline const Value *getCalledValue() const { return Operands[0]; }
|
||||||
@@ -1088,12 +1090,11 @@ public:
|
|||||||
bool mayWriteToMemory() const { return true; }
|
bool mayWriteToMemory() const { return true; }
|
||||||
|
|
||||||
/// getCalledFunction - Return the function called, or null if this is an
|
/// getCalledFunction - Return the function called, or null if this is an
|
||||||
/// indirect function invocation...
|
/// indirect function invocation.
|
||||||
///
|
///
|
||||||
/// FIXME: These should be inlined once we get rid of ConstantPointerRefs!
|
Function *getCalledFunction() const {
|
||||||
///
|
return dyn_cast<Function>(Operands[0]);
|
||||||
const Function *getCalledFunction() const;
|
}
|
||||||
Function *getCalledFunction();
|
|
||||||
|
|
||||||
// getCalledValue - Get a pointer to a function that is invoked by this inst.
|
// getCalledValue - Get a pointer to a function that is invoked by this inst.
|
||||||
inline const Value *getCalledValue() const { return Operands[0]; }
|
inline const Value *getCalledValue() const { return Operands[0]; }
|
||||||
|
|||||||
@@ -74,8 +74,9 @@ public:
|
|||||||
/// getCalledFunction - Return the function being called if this is a direct
|
/// getCalledFunction - Return the function being called if this is a direct
|
||||||
/// call, otherwise return null (if it's an indirect call).
|
/// call, otherwise return null (if it's an indirect call).
|
||||||
///
|
///
|
||||||
/// FIXME: This should be inlined once ConstantPointerRefs are gone. :(
|
Function *getCalledFunction() const {
|
||||||
Function *getCalledFunction() const;
|
return dyn_cast<Function>(getCalledValue());
|
||||||
|
}
|
||||||
|
|
||||||
/// setCalledFunction - Set the callee to the specified value...
|
/// setCalledFunction - Set the callee to the specified value...
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user