[PATCH] D44297: [lld-link] For suppressible warnings, print the suppressing flag.

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 9 04:52:04 PST 2018


thakis created this revision.
thakis added reviewers: ruiu, hans.

https://reviews.llvm.org/D44297

Files:
  COFF/Driver.cpp
  COFF/SymbolTable.cpp


Index: COFF/SymbolTable.cpp
===================================================================
--- COFF/SymbolTable.cpp
+++ COFF/SymbolTable.cpp
@@ -123,7 +123,8 @@
     if (Config->WarnLocallyDefinedImported)
       if (Symbol *Imp = LocalImports.lookup(B))
         warn("<root>: locally defined symbol imported: " + Imp->getName() +
-             " (defined in " + toString(Imp->getFile()) + ")");
+             " (defined in " + toString(Imp->getFile()) +
+             ") [no /ignore:4217]");
   }
 
   for (ObjFile *File : ObjFile::Instances) {
@@ -136,7 +137,7 @@
         if (Symbol *Imp = LocalImports.lookup(Sym))
           warn(toString(File) + ": locally defined symbol imported: " +
                Imp->getName() + " (defined in " + toString(Imp->getFile()) +
-               ")");
+               ") [no /ignore:4217]");
     }
   }
 }
Index: COFF/Driver.cpp
===================================================================
--- COFF/Driver.cpp
+++ COFF/Driver.cpp
@@ -806,7 +806,7 @@
 
     if (Set.count(S) == 0) {
       if (Config->WarnMissingOrderSymbol)
-        warn("/order:" + Arg + ": missing symbol: " + S);
+        warn("/order:" + Arg + ": missing symbol: " + S + " [no /ignore:4037]");
     }
     else
       Config->Order[S] = INT_MIN + Config->Order.size();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44297.137727.patch
Type: text/x-patch
Size: 1295 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180309/72b2b195/attachment.bin>


More information about the llvm-commits mailing list