the module is not required to exist, allow it to default, giving this
authorChris Lattner <sabre@nondot.org>
Sat, 28 Feb 2009 22:41:33 +0000 (22:41 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 28 Feb 2009 22:41:33 +0000 (22:41 +0000)
class a nice default ctor.

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

include/llvm/Assembly/Writer.h

index 49ff50f2593ac8a6fade53a74e68ecff4a557940..c9f73eed9100f0360a5d646ef8cbab69412453c1 100644 (file)
@@ -33,7 +33,7 @@ class TypePrinting {
   TypePrinting(const TypePrinting &);   // DO NOT IMPLEMENT
   void operator=(const TypePrinting&);  // DO NOT IMPLEMENT
 public:
-  TypePrinting(const Module *M);
+  TypePrinting(const Module *M = 0);
   ~TypePrinting();
   
   void clear();