aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Instruction.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-30 23:41:19 +0000
committerChris Lattner <sabre@nondot.org>2003-10-30 23:41:19 +0000
commit072ddb1dac5afbf5c789a4ea7c7a2a4205508011 (patch)
treed3499cb5c727368be605acea9bb2ac2a78b6a4a6 /include/llvm/Instruction.h
parent95e5a2cc3fc55b262d2baa1cc417115dfa4a18ea (diff)
downloadexternal_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.h5
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; }