Skip to content

Commit f95555a

Browse files
committed
[PPC][BOLT] Adding factory function
1 parent d6e90c4 commit f95555a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

bolt/lib/Target/PowerPC/PPCMCPlusBuilder.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,13 @@ class PPCMCPlusBuilder : public MCPlusBuilder{
4040
}
4141
};
4242

43+
MCPlusBuilder *createPowerPCMCPlusBuilder(const MCInstrAnalysis *Analysis,
44+
const MCInstrInfo *Info,
45+
const MCRegisterInfo *RegInfo,
46+
const MCSubtargetInfo *STI) {
47+
return new PPCMCPlusBuilder(Analysis, Info, RegInfo, STI);
48+
}
49+
4350
} // namespace bolt
44-
} // namespace llvm
51+
} // namespace llvm
52+

0 commit comments

Comments
 (0)