Skip to content

Commit f85177e

Browse files
committed
[NFC] MachineFrameInfo::print add a bit more informations
1 parent 25de443 commit f85177e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

llvm/lib/CodeGen/MachineFrameInfo.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "llvm/CodeGen/TargetRegisterInfo.h"
2121
#include "llvm/CodeGen/TargetSubtargetInfo.h"
2222
#include "llvm/Config/llvm-config.h"
23+
#include "llvm/IR/Instructions.h"
2324
#include "llvm/Support/Debug.h"
2425
#include "llvm/Support/raw_ostream.h"
2526
#include <cassert>
@@ -221,6 +222,12 @@ void MachineFrameInfo::print(const MachineFunction &MF, raw_ostream &OS) const{
221222
if (SO.StackID != 0)
222223
OS << "id=" << static_cast<unsigned>(SO.StackID) << ' ';
223224

225+
if (SO.Alloca)
226+
OS << "alloca=" << SO.Alloca->getName() << ' ';
227+
228+
if (SO.isSpillSlot)
229+
OS << "spill ";
230+
224231
if (SO.Size == ~0ULL) {
225232
OS << "dead\n";
226233
continue;

0 commit comments

Comments
 (0)