diff options
author | Chris Lattner <sabre@nondot.org> | 2006-02-09 04:22:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-02-09 04:22:52 +0000 |
commit | ba97264e72ca53a673606644cc4c69c7c37c8dc5 (patch) | |
tree | 305e2ba4b194489e801db032a88e14bc3ede80ce /llvm/lib/CodeGen/AsmPrinter.cpp | |
parent | 1cd22199dd07a19eabe5a5b078c720662b5af1a0 (diff) | |
download | bcm5719-llvm-ba97264e72ca53a673606644cc4c69c7c37c8dc5.tar.gz bcm5719-llvm-ba97264e72ca53a673606644cc4c69c7c37c8dc5.zip |
rename fields of constant pool entries
llvm-svn: 26076
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp index b6a48206df1..bd12c775e89 100644 --- a/llvm/lib/CodeGen/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter.cpp @@ -106,16 +106,16 @@ void AsmPrinter::SetupMachineFunction(MachineFunction &MF) { /// the code generator. /// void AsmPrinter::EmitConstantPool(MachineConstantPool *MCP) { - const std::vector<std::pair<Constant*, unsigned> > &CP = MCP->getConstants(); + const std::vector<MachineConstantPoolEntry> &CP = MCP->getConstants(); if (CP.empty()) return; const TargetData &TD = TM.getTargetData(); SwitchSection(ConstantPoolSection, 0); for (unsigned i = 0, e = CP.size(); i != e; ++i) { - EmitAlignment(CP[i].second); + EmitAlignment(CP[i].Alignment); O << PrivateGlobalPrefix << "CPI" << getFunctionNumber() << '_' << i - << ":\t\t\t\t\t" << CommentString << *CP[i].first << '\n'; - EmitGlobalConstant(CP[i].first); + << ":\t\t\t\t\t" << CommentString << *CP[i].Val << '\n'; + EmitGlobalConstant(CP[i].Val); } } |