mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-17 00:27:31 +00:00
Drop the argument to AsmPrinter::EmitConstantPool and make it virtual.
Overload it in the ARM backend to do nothing, since is does insane constant pool emission. llvm-svn: 94708
This commit is contained in:
parent
13333b7560
commit
6a127932c1
@ -220,7 +220,7 @@ namespace llvm {
|
||||
/// used to print out constants which have been "spilled to memory" by
|
||||
/// the code generator.
|
||||
///
|
||||
void EmitConstantPool(const MachineConstantPool *MCP);
|
||||
virtual void EmitConstantPool();
|
||||
|
||||
/// EmitJumpTableInfo - Print assembly representations of the jump tables
|
||||
/// used by the current function to the current output stream.
|
||||
|
@ -294,7 +294,7 @@ void AsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) {
|
||||
/// function.
|
||||
void AsmPrinter::EmitFunctionHeader() {
|
||||
// Print out constants referenced by the function
|
||||
EmitConstantPool(MF->getConstantPool());
|
||||
EmitConstantPool();
|
||||
|
||||
// Print the 'header' of function.
|
||||
const Function *F = MF->getFunction();
|
||||
@ -440,7 +440,8 @@ namespace {
|
||||
/// used to print out constants which have been "spilled to memory" by
|
||||
/// the code generator.
|
||||
///
|
||||
void AsmPrinter::EmitConstantPool(const MachineConstantPool *MCP) {
|
||||
void AsmPrinter::EmitConstantPool() {
|
||||
const MachineConstantPool *MCP = MF->getConstantPool();
|
||||
const std::vector<MachineConstantPoolEntry> &CP = MCP->getConstants();
|
||||
if (CP.empty()) return;
|
||||
|
||||
|
@ -164,6 +164,8 @@ namespace {
|
||||
|
||||
void printMachineInstruction(const MachineInstr *MI);
|
||||
bool runOnMachineFunction(MachineFunction &F);
|
||||
|
||||
virtual void EmitConstantPool() {} // we emit constant pools customly!
|
||||
virtual void EmitFunctionEntryLabel();
|
||||
void EmitStartOfAsmFile(Module &M);
|
||||
void EmitEndOfAsmFile(Module &M);
|
||||
|
@ -233,7 +233,7 @@ bool XCoreAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
SetupMachineFunction(MF);
|
||||
|
||||
// Print out constants referenced by the function
|
||||
EmitConstantPool(MF.getConstantPool());
|
||||
EmitConstantPool();
|
||||
|
||||
// Emit the function start directives
|
||||
emitFunctionStart(MF);
|
||||
|
Loading…
Reference in New Issue
Block a user