diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-08 21:56:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-08 21:56:02 +0000 |
commit | 5109f75f50501e3bd8ade66029ca485aeb359ff6 (patch) | |
tree | e05d97fd8d95031f6583c20a2cf5a8f1a5986652 /include/llvm/Instruction.h | |
parent | 5e1cfc58c1907eb70710c54808762657cf625180 (diff) | |
download | external_llvm-5109f75f50501e3bd8ade66029ca485aeb359ff6.zip external_llvm-5109f75f50501e3bd8ade66029ca485aeb359ff6.tar.gz external_llvm-5109f75f50501e3bd8ade66029ca485aeb359ff6.tar.bz2 |
* Add virtual print methods
* s/Method/Function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2172 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instruction.h')
-rw-r--r-- | include/llvm/Instruction.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index ba39fd2..cf7ce7d 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -13,7 +13,7 @@ class Instruction : public User { BasicBlock *Parent; - friend class ValueHolder<Instruction,BasicBlock,Method>; + friend class ValueHolder<Instruction,BasicBlock,Function>; inline void setParent(BasicBlock *P) { Parent = P; } protected: unsigned iType; // InstructionType @@ -60,6 +60,8 @@ public: return iType >= FirstBinaryOp && iType < NumBinaryOps; } + virtual void print(std::ostream &OS) const; + // Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const Instruction *I) { return true; } static inline bool classof(const Value *V) { |