Add a new, compatible, interface function for writing types as operands.
authorReid Spencer <rspencer@reidspencer.com>
Sun, 4 Jul 2004 10:59:05 +0000 (10:59 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 4 Jul 2004 10:59:05 +0000 (10:59 +0000)
This is necessary because Types are no longer Values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14598 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Assembly/Writer.h

index fcd450f08d29cbfe8db2ce8923db273cd568a963..43edb090c3813b618c841bb677d0bd46fa75c6bf 100644 (file)
@@ -40,6 +40,9 @@ std::ostream &WriteTypeSymbolic(std::ostream &, const Type *, const Module *M);
 std::ostream &WriteAsOperand(std::ostream &, const Value *, bool PrintTy = true,
                              bool PrintName = true, const Module *Context = 0);
 
+std::ostream &WriteAsOperand(std::ostream&, const Type*, bool PrintTy = true,
+                            bool PrintName = true, const Module* Context = 0);
+
 } // End llvm namespace
 
 #endif