From 68eaf84013b8a4644e6d758194166abc48bd7589 Mon Sep 17 00:00:00 2001 From: Hongtao Yu Date: Mon, 24 May 2021 12:58:25 -0700 Subject: [PATCH] [NFC][CSSPGO]llvm-profge] Fix Build warning dueo to an attrbute usage. --- tools/llvm-profgen/PerfReader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-profgen/PerfReader.h b/tools/llvm-profgen/PerfReader.h index 2e96dd46ab4..27b307d809b 100644 --- a/tools/llvm-profgen/PerfReader.h +++ b/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";