summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-28 00:19:24 +0000
committerChris Lattner <sabre@nondot.org>2010-01-28 00:19:24 +0000
commit2b796241a788f309a3a30223537598de2149cc7d (patch)
treedc8e1f412240fb7b7a0dbc41001b3cf94078172c /llvm/lib/CodeGen/AsmPrinter
parentfa784e88e8763a374e1976c1086e75cede80cd39 (diff)
downloadbcm5719-llvm-2b796241a788f309a3a30223537598de2149cc7d.tar.gz
bcm5719-llvm-2b796241a788f309a3a30223537598de2149cc7d.zip
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
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp5
1 files changed, 3 insertions, 2 deletions
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<MachineConstantPoolEntry> &CP = MCP->getConstants();
if (CP.empty()) return;
OpenPOWER on IntegriCloud