File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2992,8 +2992,8 @@ template <class ELFT> void LinkerDriver::link(opt::InputArgList &args) {
2992
2992
reportDuplicate (*d.sym , d.file , d.section , d.value );
2993
2993
2994
2994
// ELF dependent libraries may have introduced new input files after LTO has
2995
- // completed. This is an error if the file hadn 't already been parsed, since
2996
- // it's no longer legal to change the symbol table by parsing it .
2995
+ // completed. This is an error if the files haven 't already been parsed, since
2996
+ // it's no longer legal to change the symbol table by parsing them .
2997
2997
auto newInputFiles = ArrayRef (ctx.driver .files ).slice (numInputFilesBeforeLTO);
2998
2998
if (!newInputFiles.empty ()) {
2999
2999
DenseSet<StringRef> oldFilenames;
@@ -3002,7 +3002,7 @@ template <class ELFT> void LinkerDriver::link(opt::InputArgList &args) {
3002
3002
oldFilenames.insert (f->getName ());
3003
3003
for (InputFile *newFile : newInputFiles)
3004
3004
if (!oldFilenames.contains (newFile->getName ()))
3005
- error (" input file '" + newFile->getName () + " ' added after LTO" );
3005
+ errorOrWarn (" input file '" + newFile->getName () + " ' added after LTO" );
3006
3006
}
3007
3007
3008
3008
// Handle --exclude-libs again because lto.tmp may reference additional
You can’t perform that action at this time.
0 commit comments