[lld] r327257 - [lld-link] For suppressible warnings, print the warning number.
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 12 05:04:17 PDT 2018
Author: nico
Date: Mon Mar 12 05:04:17 2018
New Revision: 327257
URL: http://llvm.org/viewvc/llvm-project?rev=327257&view=rev
Log:
[lld-link] For suppressible warnings, print the warning number.
The warning can be suppressed by passing the number to /ignore:.
https://reviews.llvm.org/D44297
Modified:
lld/trunk/COFF/Driver.cpp
lld/trunk/COFF/SymbolTable.cpp
Modified: lld/trunk/COFF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Driver.cpp?rev=327257&r1=327256&r2=327257&view=diff
==============================================================================
--- lld/trunk/COFF/Driver.cpp (original)
+++ lld/trunk/COFF/Driver.cpp Mon Mar 12 05:04:17 2018
@@ -806,7 +806,7 @@ static void parseOrderFile(StringRef Arg
if (Set.count(S) == 0) {
if (Config->WarnMissingOrderSymbol)
- warn("/order:" + Arg + ": missing symbol: " + S);
+ warn("/order:" + Arg + ": missing symbol: " + S + " [LNK4037]");
}
else
Config->Order[S] = INT_MIN + Config->Order.size();
Modified: lld/trunk/COFF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/SymbolTable.cpp?rev=327257&r1=327256&r2=327257&view=diff
==============================================================================
--- lld/trunk/COFF/SymbolTable.cpp (original)
+++ lld/trunk/COFF/SymbolTable.cpp Mon Mar 12 05:04:17 2018
@@ -123,7 +123,7 @@ void SymbolTable::reportRemainingUndefin
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()) + ") [LNK4217]");
}
for (ObjFile *File : ObjFile::Instances) {
@@ -136,7 +136,7 @@ void SymbolTable::reportRemainingUndefin
if (Symbol *Imp = LocalImports.lookup(Sym))
warn(toString(File) + ": locally defined symbol imported: " +
Imp->getName() + " (defined in " + toString(Imp->getFile()) +
- ")");
+ ") [LNK4217]");
}
}
}
More information about the llvm-commits
mailing list