Skip to content

Commit 19ef1d1

Browse files
committed
[DTLTO][LLVM] Make the ThinLTO backend wait() method virtual
The DTLTO ThinLTO backend will override this function to perform code generation. The DTLTO ThinLTO backend will not do any codegen when invoked for each task. Instead, it will generate the required information (e.g., the summary index shard, import list, etc.) to allow for the codegen to be performed externally. The backend's `wait` function will then invoke an external distributor process to do backend compilations.
1 parent 03e98d4 commit 19ef1d1

File tree

1 file changed

+1
-1
lines changed
  • llvm/include/llvm/LTO

1 file changed

+1
-1
lines changed

llvm/include/llvm/LTO/LTO.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ class ThinBackendProc {
230230
const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR,
231231
MapVector<StringRef, BitcodeModule> &ModuleMap,
232232
DenseMap<StringRef, std::string> &ModuleTriples) = 0;
233-
Error wait() {
233+
virtual Error wait() {
234234
BackendThreadPool.wait();
235235
if (Err)
236236
return std::move(*Err);

0 commit comments

Comments
 (0)