diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-01-31 22:23:14 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-01-31 22:23:14 +0000 |
commit | 32be2dc0afb6e91ea5af8bac112b89ea29504647 (patch) | |
tree | 8af26880214e2f9a5778418680e5a7463a5e2b5f /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | c642aa5e1cb5262d7fb26f434b6dfac15a2caaad (diff) | |
download | llvm-32be2dc0afb6e91ea5af8bac112b89ea29504647.zip llvm-32be2dc0afb6e91ea5af8bac112b89ea29504647.tar.gz llvm-32be2dc0afb6e91ea5af8bac112b89ea29504647.tar.bz2 |
Allow the specification of explicit alignments for constant pool entries.
llvm-svn: 25855
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index f0ece6b..3c41dbe 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -346,8 +346,11 @@ void MachineFrameInfo::dump(const MachineFunction &MF) const { //===----------------------------------------------------------------------===// void MachineConstantPool::print(std::ostream &OS) const { - for (unsigned i = 0, e = Constants.size(); i != e; ++i) - OS << " <cp #" << i << "> is" << *(Value*)Constants[i] << "\n"; + for (unsigned i = 0, e = Constants.size(); i != e; ++i) { + OS << " <cp #" << i << "> is" << *(Value*)Constants[i].first; + if (Constants[i].second != 0) OS << " , align=" << Constants[i].second; + OS << "\n"; + } } void MachineConstantPool::dump() const { print(std::cerr); } |