Skip to content

Commit c3ef6d4

Browse files
committed
Move two LLVM_DEBUG banners after skippers
so that they don't show in -debug output when they are not run.
1 parent 8487d24 commit c3ef6d4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ bool StackMapLiveness::runOnMachineFunction(MachineFunction &MF) {
106106
if (!EnablePatchPointLiveness)
107107
return false;
108108

109-
LLVM_DEBUG(dbgs() << "********** COMPUTING STACKMAP LIVENESS: "
110-
<< MF.getName() << " **********\n");
111109
TRI = MF.getSubtarget().getRegisterInfo();
112110
++NumStackMapFuncVisited;
113111

@@ -121,6 +119,8 @@ bool StackMapLiveness::runOnMachineFunction(MachineFunction &MF) {
121119

122120
/// Performs the actual liveness calculation for the function.
123121
bool StackMapLiveness::calculateLiveness(MachineFunction &MF) {
122+
LLVM_DEBUG(dbgs() << "********** COMPUTING STACKMAP LIVENESS: "
123+
<< MF.getName() << " **********\n");
124124
bool HasChanged = false;
125125
// For all basic blocks in the function.
126126
for (auto &MBB : MF) {

llvm/lib/Target/X86/X86LoadValueInjectionRetHardening.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ char X86LoadValueInjectionRetHardeningPass::ID = 0;
5757

5858
bool X86LoadValueInjectionRetHardeningPass::runOnMachineFunction(
5959
MachineFunction &MF) {
60-
LLVM_DEBUG(dbgs() << "***** " << getPassName() << " : " << MF.getName()
61-
<< " *****\n");
6260
const X86Subtarget *Subtarget = &MF.getSubtarget<X86Subtarget>();
6361
if (!Subtarget->useLVIControlFlowIntegrity() || !Subtarget->is64Bit())
6462
return false; // FIXME: support 32-bit
@@ -68,6 +66,8 @@ bool X86LoadValueInjectionRetHardeningPass::runOnMachineFunction(
6866
if (!F.hasOptNone() && skipFunction(F))
6967
return false;
7068

69+
LLVM_DEBUG(dbgs() << "***** " << getPassName() << " : " << MF.getName()
70+
<< " *****\n");
7171
++NumFunctionsConsidered;
7272
const X86RegisterInfo *TRI = Subtarget->getRegisterInfo();
7373
const X86InstrInfo *TII = Subtarget->getInstrInfo();

0 commit comments

Comments
 (0)