mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	Set the SuppressWarnings option on tool level and propagate to the library.
The SuppressWarnings flag, unfortunately, isn't very useful for custom tools that want to use the LLVM module linker. So I'm changing it to a parameter of the Linker, and the flag itself moves to the llvm-link tool. For the time being as SuppressWarnings is pretty much the only "option" it seems reasonable to propagate it to Linker objects. If we end up with more options in the future, some sort of "struct collecting options" may be a better idea. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201819 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user