From 2b796241a788f309a3a30223537598de2149cc7d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 28 Jan 2010 00:19:24 +0000 Subject: 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 --- llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 2e61a6f655f..ed410a9614f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -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 &CP = MCP->getConstants(); if (CP.empty()) return; -- cgit v1.2.3