diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-13 22:54:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-13 22:54:44 +0000 |
commit | 77b220f3d5afba1bdd6c36c391ae286d5b48abf2 (patch) | |
tree | 399b76e96deaf3f6dd0da1f6cb98206aba894fc4 /llvm/lib/CodeGen | |
parent | 5011ff01790fae9494a45ea0f19be530f502c6a9 (diff) | |
download | bcm5719-llvm-77b220f3d5afba1bdd6c36c391ae286d5b48abf2.tar.gz bcm5719-llvm-77b220f3d5afba1bdd6c36c391ae286d5b48abf2.zip |
print stack object alignment in -print-machineinstr dumps
llvm-svn: 21992
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index a93ebc88ec1..aa3226bbf22 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -266,11 +266,13 @@ void MachineFrameInfo::print(const MachineFunction &MF, std::ostream &OS) const{ for (unsigned i = 0, e = Objects.size(); i != e; ++i) { const StackObject &SO = Objects[i]; - OS << " <fi #" << (int)(i-NumFixedObjects) << "> is "; + OS << " <fi #" << (int)(i-NumFixedObjects) << ">: "; if (SO.Size == 0) OS << "variable sized"; else - OS << SO.Size << " byte" << (SO.Size != 1 ? "s" : " "); + OS << "size is " << SO.Size << " byte" << (SO.Size != 1 ? "s," : ","); + OS << " alignment is " << SO.Alignment << " byte" + << (SO.Alignment != 1 ? "s," : ","); if (i < NumFixedObjects) OS << " fixed"; |