diff --git a/llvm/tools/llvm-profgen/PerfReader.h b/llvm/tools/llvm-profgen/PerfReader.h index 2e96dd46ab4792..27b307d809b8df 100644 --- a/llvm/tools/llvm-profgen/PerfReader.h +++ b/llvm/tools/llvm-profgen/PerfReader.h @@ -212,7 +212,7 @@ struct HybridSample : public PerfSample { } #ifndef NDEBUG - __attribute__((used)) void print() const { + void print() const { dbgs() << "LBR stack\n"; printLBRStack(LBRStack); dbgs() << "Call stack\n";