aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFrameInfo.cpp
diff options
context:
space:
mode:
authormadhur13490 <Madhur.Amilkanthwar@amd.com>2020-06-28 11:52:33 +0000
committermadhur13490 <Madhur.Amilkanthwar@amd.com>2020-06-28 11:52:33 +0000
commit299dee91b34756cd6622886694d638d5e3796121 (patch)
tree6af60e4497163218ddce4eebcfdb609aeba412fe /llvm/lib/CodeGen/MachineFrameInfo.cpp
parentc73966c2f79290e4eefe6e481f7bc94dd6ca4437 (diff)
downloadllvm-299dee91b34756cd6622886694d638d5e3796121.zip
llvm-299dee91b34756cd6622886694d638d5e3796121.tar.gz
llvm-299dee91b34756cd6622886694d638d5e3796121.tar.bz2
Revert accidentally landed patch citing o build errors
Summary: This reverts commit c73966c2f79290e4eefe6e481f7bc94dd6ca4437. Reviewers: Subscribers:
Diffstat (limited to 'llvm/lib/CodeGen/MachineFrameInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFrameInfo.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/MachineFrameInfo.cpp b/llvm/lib/CodeGen/MachineFrameInfo.cpp
index a0e706b..7ba27ff 100644
--- a/llvm/lib/CodeGen/MachineFrameInfo.cpp
+++ b/llvm/lib/CodeGen/MachineFrameInfo.cpp
@@ -210,16 +210,11 @@ void MachineFrameInfo::computeMaxCallFrameSize(const MachineFunction &MF) {
}
void MachineFrameInfo::print(const MachineFunction &MF, raw_ostream &OS) const{
- OS << "MF name: " << MF.getName() << "\n";
- if (Objects.empty()) {
- OS << "No stack objects.\n";
- return;
- }
+ if (Objects.empty()) return;
+
const TargetFrameLowering *FI = MF.getSubtarget().getFrameLowering();
int ValOffset = (FI ? FI->getOffsetOfLocalArea() : 0);
- OS << "NumFixedObjects=" << static_cast<unsigned>(NumFixedObjects) << "\n";
-
OS << "Frame Objects:\n";
for (unsigned i = 0, e = Objects.size(); i != e; ++i) {
@@ -227,13 +222,12 @@ void MachineFrameInfo::print(const MachineFunction &MF, raw_ostream &OS) const{
OS << " fi#" << (int)(i-NumFixedObjects) << ": ";
if (SO.StackID != 0)
- OS << "stackid=" << static_cast<unsigned>(SO.StackID) << ", ";
+ OS << "id=" << static_cast<unsigned>(SO.StackID) << ' ';
if (SO.Size == ~0ULL) {
OS << "dead\n";
continue;
}
- OS << "isSplitSplot=" << static_cast<bool>(SO.isSpillSlot) << ", ";
if (SO.Size == 0)
OS << "variable sized";
else
@@ -241,7 +235,7 @@ void MachineFrameInfo::print(const MachineFunction &MF, raw_ostream &OS) const{
OS << ", align=" << SO.Alignment.value();
if (i < NumFixedObjects)
- OS << ", fixed objects:";
+ OS << ", fixed";
if (i < NumFixedObjects || SO.SPOffset != -1) {
int64_t Off = SO.SPOffset - ValOffset;
OS << ", at location [SP";