Set the SuppressWarnings option on tool level and propagate to the library.
[oota-llvm.git] / include / llvm / Linker.h
index 4f37459eb403f38a8f85a82b0844fbaa799f32e2..67f6fc12c59612130fb311228924d9c5c74ddea7 100644 (file)
@@ -30,7 +30,7 @@ class Linker {
       PreserveSource = 1 // Preserve the source module.
     };
 
-    Linker(Module *M);
+    Linker(Module *M, bool SuppressWarnings=false);
     ~Linker();
 
     Module *getModule() const { return Composite; }
@@ -52,6 +52,8 @@ class Linker {
   private:
     Module *Composite;
     SmallPtrSet<StructType*, 32> IdentifiedStructTypes;
+
+    bool SuppressWarnings;
 };
 
 } // End llvm namespace