diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp --- a/lld/COFF/Driver.cpp +++ b/lld/COFF/Driver.cpp @@ -2138,11 +2138,11 @@ // Do LTO by compiling bitcode input files to a set of native COFF files then // link those files (unless -thinlto-index-only was given, in which case we // resolve symbols and write indices, but don't generate native code or link). - ctx.symtab.addCombinedLTOObjects(); + ctx.symtab.compileBitcodeFiles(); // If -thinlto-index-only is given, we should create only "index // files" and not object files. Index file creation is already done - // in addCombinedLTOObject, so we are done if that's the case. + // in compileBitcodeFiles, so we are done if that's the case. if (config->thinLTOIndexOnly) return; diff --git a/lld/COFF/SymbolTable.h b/lld/COFF/SymbolTable.h --- a/lld/COFF/SymbolTable.h +++ b/lld/COFF/SymbolTable.h @@ -81,7 +81,7 @@ // Build a set of COFF objects representing the combined contents of // BitcodeFiles and add them to the symbol table. Called after all files are // added and before the writer writes results to a file. - void addCombinedLTOObjects(); + void compileBitcodeFiles(); // Creates an Undefined symbol for a given name. Symbol *addUndefined(StringRef name); diff --git a/lld/COFF/SymbolTable.cpp b/lld/COFF/SymbolTable.cpp --- a/lld/COFF/SymbolTable.cpp +++ b/lld/COFF/SymbolTable.cpp @@ -865,7 +865,7 @@ return addUndefined(name, nullptr, false); } -void SymbolTable::addCombinedLTOObjects() { +void SymbolTable::compileBitcodeFiles() { if (ctx.bitcodeFileInstances.empty()) return; diff --git a/lld/wasm/Driver.cpp b/lld/wasm/Driver.cpp --- a/lld/wasm/Driver.cpp +++ b/lld/wasm/Driver.cpp @@ -970,7 +970,7 @@ // Do link-time optimization if given files are LLVM bitcode files. // This compiles bitcode files into real object files. - symtab->addCombinedLTOObject(); + symtab->compileBitcodeFiles(); if (errorCount()) return; diff --git a/lld/wasm/SymbolTable.h b/lld/wasm/SymbolTable.h --- a/lld/wasm/SymbolTable.h +++ b/lld/wasm/SymbolTable.h @@ -41,7 +41,7 @@ void addFile(InputFile *file); - void addCombinedLTOObject(); + void compileBitcodeFiles(); ArrayRef getSymbols() const { return symVector; } diff --git a/lld/wasm/SymbolTable.cpp b/lld/wasm/SymbolTable.cpp --- a/lld/wasm/SymbolTable.cpp +++ b/lld/wasm/SymbolTable.cpp @@ -63,7 +63,7 @@ // using LLVM functions and replaces bitcode symbols with the results. // Because all bitcode files that the program consists of are passed // to the compiler at once, it can do whole-program optimization. -void SymbolTable::addCombinedLTOObject() { +void SymbolTable::compileBitcodeFiles() { // Prevent further LTO objects being included BitcodeFile::doneLTO = true;