[llvm] 56ec762 - [regalloc] Fix GCC warning `-Wattributes`. NFC.
Michael Liao via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 4 09:06:23 PST 2022
Author: Michael Liao
Date: 2022-01-04T12:05:57-05:00
New Revision: 56ec762a76cbdf23c64707c45bfc9dd57f2e7abb
URL: https://github.com/llvm/llvm-project/commit/56ec762a76cbdf23c64707c45bfc9dd57f2e7abb
DIFF: https://github.com/llvm/llvm-project/commit/56ec762a76cbdf23c64707c45bfc9dd57f2e7abb.diff
LOG: [regalloc] Fix GCC warning `-Wattributes`. NFC.
- Mark it with LLVM_LIBRARY_VISIBILITY to preserve the legacy
visibility.
Added:
Modified:
llvm/lib/CodeGen/RegAllocGreedy.h
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.h b/llvm/lib/CodeGen/RegAllocGreedy.h
index c414cf73dc5f..3d8f541bc5e7 100644
--- a/llvm/lib/CodeGen/RegAllocGreedy.h
+++ b/llvm/lib/CodeGen/RegAllocGreedy.h
@@ -69,9 +69,9 @@
#include <utility>
namespace llvm {
-class RAGreedy : public MachineFunctionPass,
- public RegAllocBase,
- private LiveRangeEdit::Delegate {
+class LLVM_LIBRARY_VISIBILITY RAGreedy : public MachineFunctionPass,
+ public RegAllocBase,
+ private LiveRangeEdit::Delegate {
// Convenient shortcuts.
using PQueue = std::priority_queue<std::pair<unsigned, unsigned>>;
using SmallLISet = SmallPtrSet<LiveInterval *, 4>;
More information about the llvm-commits
mailing list