- bool PrintName = true, SlotCalculator *Table = 0);
-
-
-// WriteToVCG - Dump the specified structure to a VCG file. If method is
-// dumped, then the file named is created. If a module is to be written, a
-// family of files with a common base name is created, with a method name
-// suffix.
-//
-void WriteToVCG(const Module *Module, const std::string &Filename);
-void WriteToVCG(const Function *Func, const std::string &Filename);
-
-
-
-
-// Define operator<< to work on the various classes that we can send to an
-// ostream...
-//
-inline std::ostream &operator<<(std::ostream &o, const Module *C) {
- WriteToAssembly(C, o); return o;
-}
-
-inline std::ostream &operator<<(std::ostream &o, const GlobalVariable *G) {
- WriteToAssembly(G, o); return o;
-}
-
-inline std::ostream &operator<<(std::ostream &o, const Function *F) {
- WriteToAssembly(F, o); return o;
-}
-
-inline std::ostream &operator<<(std::ostream &o, const BasicBlock *B) {
- WriteToAssembly(B, o); return o;
-}
-
-inline std::ostream &operator<<(std::ostream &o, const Instruction *I) {
- WriteToAssembly(I, o); return o;
-}
-
-inline std::ostream &operator<<(std::ostream &o, const Constant *I) {
- WriteToAssembly(I, o); return o;
-}
-
-
-inline std::ostream &operator<<(std::ostream &o, const Type *T) {
- if (!T) return o << "<null Type>";
- return o << T->getDescription();
-}