mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +00:00
Use explicit .get() calls to avoid having to #include Function.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2208 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -9,7 +9,6 @@
|
|||||||
#define LLVM_IOTHER_H
|
#define LLVM_IOTHER_H
|
||||||
|
|
||||||
#include "llvm/InstrTypes.h"
|
#include "llvm/InstrTypes.h"
|
||||||
#include "llvm/Function.h"
|
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// CastInst Class
|
// CastInst Class
|
||||||
@@ -91,10 +90,10 @@ public:
|
|||||||
bool hasSideEffects() const { return true; }
|
bool hasSideEffects() const { return true; }
|
||||||
|
|
||||||
const Function *getCalledFunction() const {
|
const Function *getCalledFunction() const {
|
||||||
return dyn_cast<Function>(Operands[0]);
|
return dyn_cast<Function>(Operands[0].get());
|
||||||
}
|
}
|
||||||
Function *getCalledFunction() {
|
Function *getCalledFunction() {
|
||||||
return dyn_cast<Function>(Operands[0]);
|
return dyn_cast<Function>(Operands[0].get());
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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.
|
||||||
|
Reference in New Issue
Block a user