Expose new print methods

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9620 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-10-30 23:41:19 +00:00
parent 95e5a2cc3f
commit 072ddb1dac
4 changed files with 11 additions and 4 deletions

View File

@ -122,7 +122,8 @@ public:
const InstListType &getInstList() const { return InstList; }
InstListType &getInstList() { return InstList; }
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 BasicBlock *BB) { return true; }

View File

@ -181,7 +181,8 @@ public:
const Argument &aback() const { return ArgumentList.back(); }
Argument &aback() { return ArgumentList.back(); }
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;
/// viewCFG - This function is meant for use from the debugger. You can just
/// say 'call F->viewCFG()' and a ghostview window should pop up from the

View File

@ -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; }

View File

@ -187,7 +187,9 @@ public:
inline const Function &back() const { return FunctionList.back(); }
inline Function &back() { return FunctionList.back(); }
void print(std::ostream &OS) const;
void print(std::ostream &OS) const { print(OS, 0); }
void print(std::ostream &OS, AssemblyAnnotationWriter *AAW) const;
void dump() const;
/// dropAllReferences() - This function causes all the subinstructions to "let