mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-10 12:32:21 +00:00
Make EmitFunctionHeader a private helper.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232481 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
42c951a74c
commit
b80d90e9d0
@ -198,7 +198,6 @@ public:
|
||||
/// Emit the specified function out to the OutStreamer.
|
||||
bool runOnMachineFunction(MachineFunction &MF) override {
|
||||
SetupMachineFunction(MF);
|
||||
EmitFunctionHeader();
|
||||
EmitFunctionBody();
|
||||
return false;
|
||||
}
|
||||
@ -211,9 +210,6 @@ public:
|
||||
/// runOnMachineFunction.
|
||||
void SetupMachineFunction(MachineFunction &MF);
|
||||
|
||||
/// This method emits the header for the current function.
|
||||
void EmitFunctionHeader();
|
||||
|
||||
/// This method emits the body and trailer for a function.
|
||||
void EmitFunctionBody();
|
||||
|
||||
@ -504,6 +500,9 @@ private:
|
||||
mutable unsigned Counter;
|
||||
mutable unsigned SetCounter;
|
||||
|
||||
/// This method emits the header for the current function.
|
||||
void EmitFunctionHeader();
|
||||
|
||||
/// Emit a blob of inline asm to the output streamer.
|
||||
void
|
||||
EmitInlineAsm(StringRef Str, const MCSubtargetInfo &STI,
|
||||
|
@ -782,6 +782,8 @@ void AsmPrinter::emitFrameAlloc(const MachineInstr &MI) {
|
||||
/// EmitFunctionBody - This method emits the body and trailer for a
|
||||
/// function.
|
||||
void AsmPrinter::EmitFunctionBody() {
|
||||
EmitFunctionHeader();
|
||||
|
||||
// Emit target-specific gunk before the function body.
|
||||
EmitFunctionBodyStart();
|
||||
|
||||
|
@ -120,9 +120,6 @@ bool ARMAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
OutStreamer.EndCOFFSymbolDef();
|
||||
}
|
||||
|
||||
// Have common code print out the function header with linkage info etc.
|
||||
EmitFunctionHeader();
|
||||
|
||||
// Emit the rest of the function body.
|
||||
EmitFunctionBody();
|
||||
|
||||
|
@ -127,7 +127,6 @@ bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
HexLines.clear();
|
||||
DisasmLineMaxLen = 0;
|
||||
|
||||
EmitFunctionHeader();
|
||||
EmitFunctionBody();
|
||||
|
||||
if (isVerbose()) {
|
||||
|
@ -63,9 +63,6 @@ bool X86AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
OutStreamer.EndCOFFSymbolDef();
|
||||
}
|
||||
|
||||
// Have common code print out the function header with linkage info etc.
|
||||
EmitFunctionHeader();
|
||||
|
||||
// Emit the rest of the function body.
|
||||
EmitFunctionBody();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user