File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -2044,7 +2044,11 @@ class MCPlusBuilder {
2044
2044
// / Returns a function body that contains only a return instruction. An
2045
2045
// / example usage is a workaround for the '__bolt_fini_trampoline' of
2046
2046
// Instrumentation.
2047
- virtual InstructionListType createDummyReturn (MCContext *Ctx) const ;
2047
+ virtual InstructionListType createDummyReturnFunction (MCContext *Ctx) const {
2048
+ InstructionListType Insts (1 );
2049
+ createReturn (Insts[0 ]);
2050
+ return Insts;
2051
+ }
2048
2052
2049
2053
// / This method takes an indirect call instruction and splits it up into an
2050
2054
// / equivalent set of instructions that use direct calls for target
Original file line number Diff line number Diff line change @@ -147,12 +147,6 @@ bool MCPlusBuilder::isTailCall(const MCInst &Inst) const {
147
147
return false ;
148
148
}
149
149
150
- InstructionListType MCPlusBuilder::createDummyReturn (MCContext *Ctx) const {
151
- InstructionListType Insts (1 );
152
- createReturn (Insts[0 ]);
153
- return Insts;
154
- }
155
-
156
150
std::optional<MCLandingPad> MCPlusBuilder::getEHInfo (const MCInst &Inst) const {
157
151
if (!isCall (Inst))
158
152
return std::nullopt;
Original file line number Diff line number Diff line change @@ -754,7 +754,7 @@ void Instrumentation::createAuxiliaryFunctions(BinaryContext &BC) {
754
754
// with unknown symbol in runtime library. E.g. for static PIE
755
755
// executable
756
756
createSimpleFunction (" __bolt_fini_trampoline" ,
757
- BC.MIB ->createDummyReturn (BC.Ctx .get ()));
757
+ BC.MIB ->createDummyReturnFunction (BC.Ctx .get ()));
758
758
}
759
759
}
760
760
}
You can’t perform that action at this time.
0 commit comments