This callback is invoked when the parse has finished successfuly. It
will be used to write out ARM constant pools to implement the ldr
pseudo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197706
91177308-0d34-0410-b5e6-
96231b3b80d8
return 0;
}
+ /// Allow a target to perform any actions after the parse completes
+ /// successfully. For example, to write out constant pools for ldr pseudo on
+ /// ARM.
+ virtual void finishParse() {};
+
virtual void onLabelParsed(MCSymbol *Symbol) { };
};
}
}
+ // Callback to the target parser in case it needs to do anything.
+ if (!HadError)
+ getTargetParser().finishParse();
+
// Finalize the output stream if there are no errors and if the client wants
// us to.
if (!HadError && !NoFinalize)