Skip to content

Commit ec46103

Browse files
committed
[PPC][BOLT] Update selection logic to invoke the PCC factory when PCC architecture is selected
1 parent 7d91a5e commit ec46103

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bolt/lib/Rewrite/RewriteInstance.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,11 @@ MCPlusBuilder *createMCPlusBuilder(const Triple::ArchType Arch,
334334
return createRISCVMCPlusBuilder(Analysis, Info, RegInfo, STI);
335335
#endif
336336

337+
#ifdef POWERPC_AVAILABLE
338+
if (Arch == Triple::ppc64 || Arch == Triple::ppc64le)
339+
return createPowerPCMCPlusBuilder(Analysis, Info, RegInfo, STI);
340+
#endif
341+
337342
llvm_unreachable("architecture unsupported by MCPlusBuilder");
338343
}
339344

0 commit comments

Comments
 (0)