diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-09 19:07:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-09 19:07:44 +0000 |
commit | d6a8ca745d1278d1e82dfb3bbd65c3fabfe3d68c (patch) | |
tree | 5237f75e9fe81fac610c5d7b294bf9d3e7cb856e /include/llvm | |
parent | 42a412711c000d175d992dd1b85cfd04fd345e5b (diff) | |
download | external_llvm-d6a8ca745d1278d1e82dfb3bbd65c3fabfe3d68c.zip external_llvm-d6a8ca745d1278d1e82dfb3bbd65c3fabfe3d68c.tar.gz external_llvm-d6a8ca745d1278d1e82dfb3bbd65c3fabfe3d68c.tar.bz2 |
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
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/iOther.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/iOther.h b/include/llvm/iOther.h index 3e3bfc4..ef99399 100644 --- a/include/llvm/iOther.h +++ b/include/llvm/iOther.h @@ -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. |