[llvm] 00bfde7 - [NFC][CSSPGO]llvm-profge] Fix Build warning dueo to an attrbute usage.
Hongtao Yu via llvm-commits
llvm-commits at lists.llvm.org
Mon May 24 12:59:13 PDT 2021
Author: Hongtao Yu
Date: 2021-05-24T12:59:02-07:00
New Revision: 00bfde723b643b4b79b2cf4193fb65ef0b9d47ee
URL: https://github.com/llvm/llvm-project/commit/00bfde723b643b4b79b2cf4193fb65ef0b9d47ee
DIFF: https://github.com/llvm/llvm-project/commit/00bfde723b643b4b79b2cf4193fb65ef0b9d47ee.diff
LOG: [NFC][CSSPGO]llvm-profge] Fix Build warning dueo to an attrbute usage.
Added:
Modified:
llvm/tools/llvm-profgen/PerfReader.h
Removed:
################################################################################
diff --git a/llvm/tools/llvm-profgen/PerfReader.h b/llvm/tools/llvm-profgen/PerfReader.h
index 2e96dd46ab47..27b307d809b8 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";
More information about the llvm-commits
mailing list