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 | ea0d3c61f279f327098d272276a5c01fc50d49b6 (patch) | |
| tree | 80c42b86cb3e84521ea1f147a12fa3f1d3f8dd65 /llvm | |
| parent | d92b01c3850745689a46762bd9eb53cfd9afacdd (diff) | |
| download | bcm5719-llvm-ea0d3c61f279f327098d272276a5c01fc50d49b6.tar.gz bcm5719-llvm-ea0d3c61f279f327098d272276a5c01fc50d49b6.zip | |
Use explicit .get() calls to avoid having to #include Function.h
llvm-svn: 2208
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/iOther.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/include/llvm/iOther.h b/llvm/include/llvm/iOther.h index 3e3bfc4bfd3..ef99399a0be 100644 --- a/llvm/include/llvm/iOther.h +++ b/llvm/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. |

