mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Use explicit .get() calls to avoid having to #include Function.h
llvm-svn: 2208
This commit is contained in:
parent
7ae20d642d
commit
cdc0946863
@ -9,7 +9,6 @@
|
||||
#define LLVM_IOTHER_H
|
||||
|
||||
#include "llvm/InstrTypes.h"
|
||||
#include "llvm/Function.h"
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// CastInst Class
|
||||
@ -91,10 +90,10 @@ public:
|
||||
bool hasSideEffects() const { return true; }
|
||||
|
||||
const Function *getCalledFunction() const {
|
||||
return dyn_cast<Function>(Operands[0]);
|
||||
return dyn_cast<Function>(Operands[0].get());
|
||||
}
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user