aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFrameInfo.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2020-04-03 13:55:17 +0000
committerGuillaume Chatelet <gchatelet@google.com>2020-04-06 07:12:46 +0000
commit1e34ab98fc6f5ea7e264c0cd19d96b87cbd9c8a5 (patch)
treedfe81bf0460b53ded5bcd0728836d321794e7376 /llvm/lib/CodeGen/MachineFrameInfo.cpp
parent35819ff3cf4cfa3f40be19f5bbfc84d0d9f1f8d7 (diff)
downloadllvm-1e34ab98fc6f5ea7e264c0cd19d96b87cbd9c8a5.zip
llvm-1e34ab98fc6f5ea7e264c0cd19d96b87cbd9c8a5.tar.gz
llvm-1e34ab98fc6f5ea7e264c0cd19d96b87cbd9c8a5.tar.bz2
[Alignment][NFC] Add DebugStr and operator*
Summary: Also updates files to use them. This is patch is part of a series to introduce an Alignment type. See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html See this patch for the introduction of the type: https://reviews.llvm.org/D64790 Reviewers: courbet Subscribers: sdardis, hiraditya, jrtc27, atanasyan, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77394
Diffstat (limited to 'llvm/lib/CodeGen/MachineFrameInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFrameInfo.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFrameInfo.cpp b/llvm/lib/CodeGen/MachineFrameInfo.cpp
index 7690505..7ba27ff 100644
--- a/llvm/lib/CodeGen/MachineFrameInfo.cpp
+++ b/llvm/lib/CodeGen/MachineFrameInfo.cpp
@@ -41,8 +41,9 @@ static inline Align clampStackAlignment(bool ShouldClamp, Align Alignment,
Align StackAlignment) {
if (!ShouldClamp || Alignment <= StackAlignment)
return Alignment;
- LLVM_DEBUG(dbgs() << "Warning: requested alignment " << Alignment.value()
- << " exceeds the stack alignment " << StackAlignment.value()
+ LLVM_DEBUG(dbgs() << "Warning: requested alignment " << DebugStr(Alignment)
+ << " exceeds the stack alignment "
+ << DebugStr(StackAlignment)
<< " when stack realignment is off" << '\n');
return StackAlignment;
}