diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-30 23:41:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-30 23:41:19 +0000 |
commit | 072ddb1dac5afbf5c789a4ea7c7a2a4205508011 (patch) | |
tree | d3499cb5c727368be605acea9bb2ac2a78b6a4a6 /include/llvm/Instruction.h | |
parent | 95e5a2cc3fc55b262d2baa1cc417115dfa4a18ea (diff) | |
download | external_llvm-072ddb1dac5afbf5c789a4ea7c7a2a4205508011.zip external_llvm-072ddb1dac5afbf5c789a4ea7c7a2a4205508011.tar.gz external_llvm-072ddb1dac5afbf5c789a4ea7c7a2a4205508011.tar.bz2 |
Expose new print methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9620 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instruction.h')
-rw-r--r-- | include/llvm/Instruction.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index f23fe32..264356c 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -17,6 +17,8 @@ #include "llvm/User.h" +class AssemblyAnnotationWriter; + template<typename SC> struct ilist_traits; template<typename ValueSubClass, typename ItemParentClass, typename SymTabClass, typename SubClass> class SymbolTableListTraits; @@ -108,7 +110,8 @@ public: } static bool isTrapping(unsigned op); - virtual void print(std::ostream &OS) const; + virtual void print(std::ostream &OS) const { print(OS, 0); } + void print(std::ostream &OS, AssemblyAnnotationWriter *AAW) const; /// Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const Instruction *I) { return true; } |