From 56ec762a76cbdf23c64707c45bfc9dd57f2e7abb Mon Sep 17 00:00:00 2001 From: Michael Liao Date: Tue, 4 Jan 2022 12:01:21 -0500 Subject: [PATCH] [regalloc] Fix GCC warning `-Wattributes`. NFC. - Mark it with LLVM_LIBRARY_VISIBILITY to preserve the legacy visibility. --- llvm/lib/CodeGen/RegAllocGreedy.h | 6 +++--- 1 file 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 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>; using SmallLISet = SmallPtrSet;