Expose some more printing functionality from the assembly writer library
authorChris Lattner <sabre@nondot.org>
Mon, 29 Oct 2001 16:36:49 +0000 (16:36 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 29 Oct 2001 16:36:49 +0000 (16:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1030 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Assembly/Writer.h

index bcda38b90d6bf747973df39e0a75a44685d43dfb..1db5cd36894d1a0e4d6d35ec25ab07da939d4bf6 100644 (file)
@@ -37,6 +37,13 @@ void WriteToAssembly(const BasicBlock  *BB, ostream &o);
 void WriteToAssembly(const Instruction *In, ostream &o);
 void WriteToAssembly(const ConstPoolVal *V, ostream &o);
 
+// WriteTypeSymbolic - This attempts to write the specified type as a symbolic
+// type, iff there is an entry in the modules symbol table for the specified
+// type or one of it's component types.  This is slower than a simple x << Type;
+//
+ostream &WriteTypeSymbolic(ostream &o, const Type *Ty, const Module *Module);
+
+
 // WriteAsOperand - Write the name of the specified value out to the specified
 // ostream.  This can be useful when you just want to print int %reg126, not the
 // whole instruction that generated it.