summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Liao <michael.hliao@gmail.com>2022-01-04 12:01:21 -0500
committerMichael Liao <michael.hliao@gmail.com>2022-01-04 12:05:57 -0500
commit56ec762a76cbdf23c64707c45bfc9dd57f2e7abb (patch)
treeb080116bbd10ae3a629fbb8c52da88d3dcce3667
parent95f9eddbbcffa77685d0fd2e781521acb5d21ae4 (diff)
downloadllvm-56ec762a76cbdf23c64707c45bfc9dd57f2e7abb.tar.gz
[regalloc] Fix GCC warning `-Wattributes`. NFC.
- Mark it with LLVM_LIBRARY_VISIBILITY to preserve the legacy visibility.
-rw-r--r--llvm/lib/CodeGen/RegAllocGreedy.h6
1 files changed, 3 insertions, 3 deletions
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>;