[llvm-commits] CVS: llvm/include/llvm/BasicBlock.h Function.h Instruction.h Module.h
Chris Lattner
lattner at cs.uiuc.edu
Thu Oct 30 17:42:00 PST 2003
Changes in directory llvm/include/llvm:
BasicBlock.h updated: 1.33 -> 1.34
Function.h updated: 1.47 -> 1.48
Instruction.h updated: 1.47 -> 1.48
Module.h updated: 1.36 -> 1.37
---
Log message:
Expose new print methods
---
Diffs of the changes: (+11 -4)
Index: llvm/include/llvm/BasicBlock.h
diff -u llvm/include/llvm/BasicBlock.h:1.33 llvm/include/llvm/BasicBlock.h:1.34
--- llvm/include/llvm/BasicBlock.h:1.33 Mon Oct 20 15:19:13 2003
+++ llvm/include/llvm/BasicBlock.h Thu Oct 30 17:41:19 2003
@@ -122,7 +122,8 @@
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; }
Index: llvm/include/llvm/Function.h
diff -u llvm/include/llvm/Function.h:1.47 llvm/include/llvm/Function.h:1.48
--- llvm/include/llvm/Function.h:1.47 Wed Oct 22 11:03:20 2003
+++ llvm/include/llvm/Function.h Thu Oct 30 17:41:19 2003
@@ -181,7 +181,8 @@
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
Index: llvm/include/llvm/Instruction.h
diff -u llvm/include/llvm/Instruction.h:1.47 llvm/include/llvm/Instruction.h:1.48
--- llvm/include/llvm/Instruction.h:1.47 Mon Oct 20 15:19:14 2003
+++ llvm/include/llvm/Instruction.h Thu Oct 30 17:41:19 2003
@@ -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 @@
}
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; }
Index: llvm/include/llvm/Module.h
diff -u llvm/include/llvm/Module.h:1.36 llvm/include/llvm/Module.h:1.37
--- llvm/include/llvm/Module.h:1.36 Mon Oct 20 15:19:14 2003
+++ llvm/include/llvm/Module.h Thu Oct 30 17:41:19 2003
@@ -187,7 +187,9 @@
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
More information about the llvm-commits
mailing list