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 | fa77d43ba1d91ed39f46e11caeb28dcabae9e193 (patch) | |
tree | e67f1756d9eb6a0a4772bb8ef2749550e5fdf843 /lib/CodeGen/AsmPrinter.cpp | |
parent | 69a9563969156f9ea4345d21673f350ee237d4da (diff) |
rename fields of constant pool entries
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26076 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp index b6a48206df..bd12c775e8 100644 --- a/lib/CodeGen/AsmPrinter.cpp +++ b/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); } } |