@@ -59,14 +59,14 @@ raw_ostream &operator<<(raw_ostream &OS, const MCInstReference &Ref) {
59
59
60
60
namespace NonPacProtectedRetAnalysis {
61
61
62
- static void traceInst (const BinaryContext &BC, StringRef Label,
63
- const MCInst &MI) {
62
+ [[maybe_unused]] static void traceInst (const BinaryContext &BC, StringRef Label,
63
+ const MCInst &MI) {
64
64
dbgs () << " " << Label << " : " ;
65
65
BC.printInstruction (dbgs (), MI);
66
66
}
67
67
68
- static void traceReg (const BinaryContext &BC, StringRef Label,
69
- ErrorOr<MCPhysReg> Reg) {
68
+ [[maybe_unused]] static void traceReg (const BinaryContext &BC, StringRef Label,
69
+ ErrorOr<MCPhysReg> Reg) {
70
70
dbgs () << " " << Label << " : " ;
71
71
if (Reg.getError ())
72
72
dbgs () << " (error)" ;
@@ -77,8 +77,8 @@ static void traceReg(const BinaryContext &BC, StringRef Label,
77
77
dbgs () << " \n " ;
78
78
}
79
79
80
- static void traceRegMask (const BinaryContext &BC, StringRef Label ,
81
- BitVector Mask) {
80
+ [[maybe_unused]] static void traceRegMask (const BinaryContext &BC,
81
+ StringRef Label, BitVector Mask) {
82
82
dbgs () << " " << Label << " : " ;
83
83
RegStatePrinter (BC).print (dbgs (), Mask);
84
84
dbgs () << " \n " ;
0 commit comments