mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-14 15:57:47 +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.
|
/// Emit the specified function out to the OutStreamer.
|
||||||
bool runOnMachineFunction(MachineFunction &MF) override {
|
bool runOnMachineFunction(MachineFunction &MF) override {
|
||||||
SetupMachineFunction(MF);
|
SetupMachineFunction(MF);
|
||||||
EmitFunctionHeader();
|
|
||||||
EmitFunctionBody();
|
EmitFunctionBody();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -211,9 +210,6 @@ public:
|
|||||||
/// runOnMachineFunction.
|
/// runOnMachineFunction.
|
||||||
void SetupMachineFunction(MachineFunction &MF);
|
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.
|
/// This method emits the body and trailer for a function.
|
||||||
void EmitFunctionBody();
|
void EmitFunctionBody();
|
||||||
|
|
||||||
@ -504,6 +500,9 @@ private:
|
|||||||
mutable unsigned Counter;
|
mutable unsigned Counter;
|
||||||
mutable unsigned SetCounter;
|
mutable unsigned SetCounter;
|
||||||
|
|
||||||
|
/// This method emits the header for the current function.
|
||||||
|
void EmitFunctionHeader();
|
||||||
|
|
||||||
/// Emit a blob of inline asm to the output streamer.
|
/// Emit a blob of inline asm to the output streamer.
|
||||||
void
|
void
|
||||||
EmitInlineAsm(StringRef Str, const MCSubtargetInfo &STI,
|
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
|
/// EmitFunctionBody - This method emits the body and trailer for a
|
||||||
/// function.
|
/// function.
|
||||||
void AsmPrinter::EmitFunctionBody() {
|
void AsmPrinter::EmitFunctionBody() {
|
||||||
|
EmitFunctionHeader();
|
||||||
|
|
||||||
// Emit target-specific gunk before the function body.
|
// Emit target-specific gunk before the function body.
|
||||||
EmitFunctionBodyStart();
|
EmitFunctionBodyStart();
|
||||||
|
|
||||||
|
@ -120,9 +120,6 @@ bool ARMAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
OutStreamer.EndCOFFSymbolDef();
|
OutStreamer.EndCOFFSymbolDef();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Have common code print out the function header with linkage info etc.
|
|
||||||
EmitFunctionHeader();
|
|
||||||
|
|
||||||
// Emit the rest of the function body.
|
// Emit the rest of the function body.
|
||||||
EmitFunctionBody();
|
EmitFunctionBody();
|
||||||
|
|
||||||
|
@ -127,7 +127,6 @@ bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
HexLines.clear();
|
HexLines.clear();
|
||||||
DisasmLineMaxLen = 0;
|
DisasmLineMaxLen = 0;
|
||||||
|
|
||||||
EmitFunctionHeader();
|
|
||||||
EmitFunctionBody();
|
EmitFunctionBody();
|
||||||
|
|
||||||
if (isVerbose()) {
|
if (isVerbose()) {
|
||||||
|
@ -63,9 +63,6 @@ bool X86AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
OutStreamer.EndCOFFSymbolDef();
|
OutStreamer.EndCOFFSymbolDef();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Have common code print out the function header with linkage info etc.
|
|
||||||
EmitFunctionHeader();
|
|
||||||
|
|
||||||
// Emit the rest of the function body.
|
// Emit the rest of the function body.
|
||||||
EmitFunctionBody();
|
EmitFunctionBody();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user