[llvm] [BOLT][AArch64] Implemented createDummyReturnFunction. (PR #96626)

Pavel Samolysov via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 10:13:54 PDT 2024


================
@@ -1582,6 +1607,12 @@ class AArch64MCPlusBuilder : public MCPlusBuilder {
     return Instrs;
   }
 
+  InstructionListType createDummyReturnFunction(MCContext *Ctx) const override {
+    InstructionListType Insts(1);
+    createReturn(Insts[0]);
+    return Insts;
----------------
samolisov wrote:

My opinion is to put the code in the base class' method. I'm not sure using pure virtual methods is consistent with the rest of bolt's codebase.

https://github.com/llvm/llvm-project/pull/96626


More information about the llvm-commits mailing list