Skip to content

Commit 08c6706

Browse files
committed
Remove LLVM_LIBRARY_VISIBILITY usage from llvm code since symbol visibility will be hidden by default
1 parent 368d6d7 commit 08c6706

40 files changed

+79
-79
lines changed

llvm/include/llvm/Transforms/Scalar/GVN.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class TargetLibraryInfo;
5656
class Value;
5757
/// A private "module" namespace for types and utilities used by GVN. These
5858
/// are implementation details and should not be used by clients.
59-
namespace LLVM_LIBRARY_VISIBILITY_NAMESPACE gvn {
59+
namespace gvn {
6060

6161
struct AvailableValue;
6262
struct AvailableValueInBlock;

llvm/lib/CodeGen/AggressiveAntiDepBreaker.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class TargetRegisterClass;
3737
class TargetRegisterInfo;
3838

3939
/// Contains all the state necessary for anti-dep breaking.
40-
class LLVM_LIBRARY_VISIBILITY AggressiveAntiDepState {
40+
class AggressiveAntiDepState {
4141
public:
4242
/// Information about a register reference within a liverange
4343
struct RegisterReference {
@@ -113,7 +113,7 @@ class LLVM_LIBRARY_VISIBILITY AggressiveAntiDepState {
113113
bool IsLive(unsigned Reg);
114114
};
115115

116-
class LLVM_LIBRARY_VISIBILITY AggressiveAntiDepBreaker
116+
class AggressiveAntiDepBreaker
117117
: public AntiDepBreaker {
118118
MachineFunction &MF;
119119
MachineRegisterInfo &MRI;

llvm/lib/CodeGen/AllocationOrder.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class RegisterClassInfo;
2727
class VirtRegMap;
2828
class LiveRegMatrix;
2929

30-
class LLVM_LIBRARY_VISIBILITY AllocationOrder {
30+
class AllocationOrder {
3131
const SmallVector<MCPhysReg, 16> Hints;
3232
ArrayRef<MCPhysReg> Order;
3333
// How far into the Order we can iterate. This is 0 if the AllocationOrder is

llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class MCSymbol;
5252
class MachineFunction;
5353

5454
/// Collects and handles line tables information in a CodeView format.
55-
class LLVM_LIBRARY_VISIBILITY CodeViewDebug : public DebugHandlerBase {
55+
class CodeViewDebug : public DebugHandlerBase {
5656
public:
5757
struct LocalVarDef {
5858
/// Indicates that variable data is stored in memory relative to the

llvm/lib/CodeGen/AsmPrinter/DwarfException.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace llvm {
2121
class MachineFunction;
2222
class ARMTargetStreamer;
2323

24-
class LLVM_LIBRARY_VISIBILITY DwarfCFIException : public EHStreamer {
24+
class DwarfCFIException : public EHStreamer {
2525
/// Per-function flag to indicate if .cfi_personality should be emitted.
2626
bool shouldEmitPersonality = false;
2727

@@ -63,7 +63,7 @@ class LLVM_LIBRARY_VISIBILITY DwarfCFIException : public EHStreamer {
6363
void endBasicBlockSection(const MachineBasicBlock &MBB) override;
6464
};
6565

66-
class LLVM_LIBRARY_VISIBILITY ARMException : public EHStreamer {
66+
class ARMException : public EHStreamer {
6767
/// Per-function flag to indicate if frame CFI info should be emitted.
6868
bool shouldEmitCFI = false;
6969

@@ -93,7 +93,7 @@ class LLVM_LIBRARY_VISIBILITY ARMException : public EHStreamer {
9393
void markFunctionEnd() override;
9494
};
9595

96-
class LLVM_LIBRARY_VISIBILITY AIXException : public EHStreamer {
96+
class AIXException : public EHStreamer {
9797
/// This is AIX's compat unwind section, which unwinder would use
9898
/// to find the location of LSDA area and personality rountine.
9999
void emitExceptionInfoTable(const MCSymbol *LSDA, const MCSymbol *PerSym);

llvm/lib/CodeGen/AsmPrinter/EHStreamer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class MCSymbol;
2727
template <typename T> class SmallVectorImpl;
2828

2929
/// Emits exception handling directives.
30-
class LLVM_LIBRARY_VISIBILITY EHStreamer : public AsmPrinterHandler {
30+
class EHStreamer : public AsmPrinterHandler {
3131
protected:
3232
/// Target of directive emission.
3333
AsmPrinter *Asm;

llvm/lib/CodeGen/AsmPrinter/WasmException.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class MachineFunction;
2222
struct LandingPadInfo;
2323
template <typename T> class SmallVectorImpl;
2424

25-
class LLVM_LIBRARY_VISIBILITY WasmException : public EHStreamer {
25+
class WasmException : public EHStreamer {
2626
public:
2727
WasmException(AsmPrinter *A) : EHStreamer(A) {}
2828

llvm/lib/CodeGen/AsmPrinter/WinCFGuard.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
namespace llvm {
2222

23-
class LLVM_LIBRARY_VISIBILITY WinCFGuard : public AsmPrinterHandler {
23+
class WinCFGuard : public AsmPrinterHandler {
2424
/// Target of directive emission.
2525
AsmPrinter *Asm;
2626
std::vector<const MCSymbol *> LongjmpTargets;

llvm/lib/CodeGen/AsmPrinter/WinException.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class MCExpr;
2323
class MCSection;
2424
struct WinEHFuncInfo;
2525

26-
class LLVM_LIBRARY_VISIBILITY WinException : public EHStreamer {
26+
class WinException : public EHStreamer {
2727
/// Per-function flag to indicate if personality info should be emitted.
2828
bool shouldEmitPersonality = false;
2929

llvm/lib/CodeGen/BranchFolding.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ProfileSummaryInfo;
2828
class TargetInstrInfo;
2929
class TargetRegisterInfo;
3030

31-
class LLVM_LIBRARY_VISIBILITY BranchFolder {
31+
class BranchFolder {
3232
public:
3333
explicit BranchFolder(bool DefaultEnableTailMerge, bool CommonHoist,
3434
MBFIWrapper &FreqInfo,

llvm/lib/CodeGen/CriticalAntiDepBreaker.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class TargetInstrInfo;
3333
class TargetRegisterClass;
3434
class TargetRegisterInfo;
3535

36-
class LLVM_LIBRARY_VISIBILITY CriticalAntiDepBreaker : public AntiDepBreaker {
36+
class CriticalAntiDepBreaker : public AntiDepBreaker {
3737
MachineFunction& MF;
3838
MachineRegisterInfo &MRI;
3939
const TargetInstrInfo *TII;

llvm/lib/CodeGen/InterferenceCache.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class LiveIntervals;
2929
class MachineFunction;
3030
class TargetRegisterInfo;
3131

32-
class LLVM_LIBRARY_VISIBILITY InterferenceCache {
32+
class InterferenceCache {
3333
/// BlockInterference - information about the interference in a single basic
3434
/// block.
3535
struct BlockInterference {

llvm/lib/CodeGen/RegAllocGreedy.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class SlotIndexes;
5656
class TargetInstrInfo;
5757
class VirtRegMap;
5858

59-
class LLVM_LIBRARY_VISIBILITY RAGreedy : public MachineFunctionPass,
59+
class RAGreedy : public MachineFunctionPass,
6060
public RegAllocBase,
6161
private LiveRangeEdit::Delegate {
6262
// Interface to eviction advisers

llvm/lib/CodeGen/SelectionDAG/InstrEmitter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class SDDbgOperand;
2929
class TargetLowering;
3030
class TargetMachine;
3131

32-
class LLVM_LIBRARY_VISIBILITY InstrEmitter {
32+
class InstrEmitter {
3333
public:
3434
using VRBaseMapType = SmallDenseMap<SDValue, Register, 16>;
3535

llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace llvm {
2828
/// value types the target machine can handle are left. This involves promoting
2929
/// small sizes to large sizes or splitting up large values into small values.
3030
///
31-
class LLVM_LIBRARY_VISIBILITY DAGTypeLegalizer {
31+
class DAGTypeLegalizer {
3232
const TargetLowering &TLI;
3333
SelectionDAG &DAG;
3434
public:

llvm/lib/CodeGen/SplitKit.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class VirtRegAuxInfo;
4747

4848
/// Determines the latest safe point in a block in which we can insert a split,
4949
/// spill or other instruction related with CurLI.
50-
class LLVM_LIBRARY_VISIBILITY InsertPointAnalysis {
50+
class InsertPointAnalysis {
5151
private:
5252
const LiveIntervals &LIS;
5353

@@ -93,7 +93,7 @@ class LLVM_LIBRARY_VISIBILITY InsertPointAnalysis {
9393

9494
/// SplitAnalysis - Analyze a LiveInterval, looking for live range splitting
9595
/// opportunities.
96-
class LLVM_LIBRARY_VISIBILITY SplitAnalysis {
96+
class SplitAnalysis {
9797
public:
9898
const MachineFunction &MF;
9999
const VirtRegMap &VRM;
@@ -260,7 +260,7 @@ class LLVM_LIBRARY_VISIBILITY SplitAnalysis {
260260
/// - Finish the current interval with closeIntv and repeat from 2.
261261
/// - Rewrite instructions with finish().
262262
///
263-
class LLVM_LIBRARY_VISIBILITY SplitEditor {
263+
class SplitEditor {
264264
SplitAnalysis &SA;
265265
LiveIntervals &LIS;
266266
VirtRegMap &VRM;

llvm/lib/Target/AArch64/AArch64MCInstLower.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class MachineOperand;
2424

2525
/// AArch64MCInstLower - This class is used to lower an MachineInstr
2626
/// into an MCInst.
27-
class LLVM_LIBRARY_VISIBILITY AArch64MCInstLower {
27+
class AArch64MCInstLower {
2828
MCContext &Ctx;
2929
AsmPrinter &Printer;
3030
Triple TargetTriple;

llvm/lib/Target/ARC/ARCMCInstLower.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Mangler;
2323
class AsmPrinter;
2424

2525
/// This class is used to lower an MachineInstr into an MCInst.
26-
class LLVM_LIBRARY_VISIBILITY ARCMCInstLower {
26+
class ARCMCInstLower {
2727
using MachineOperandType = MachineOperand::MachineOperandType;
2828
MCContext *Ctx;
2929
AsmPrinter &Printer;

llvm/lib/Target/ARM/ARMAsmPrinter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace ARM {
2828
};
2929
}
3030

31-
class LLVM_LIBRARY_VISIBILITY ARMAsmPrinter : public AsmPrinter {
31+
class ARMAsmPrinter : public AsmPrinter {
3232

3333
/// Subtarget - Keep a pointer to the ARMSubtarget around so that we can
3434
/// make the right decision when printing asm code for different targets.

llvm/lib/Target/BPF/BPFMCInstLower.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class MachineInstr;
2121
class MachineOperand;
2222

2323
// BPFMCInstLower - This class is used to lower an MachineInstr into an MCInst.
24-
class LLVM_LIBRARY_VISIBILITY BPFMCInstLower {
24+
class BPFMCInstLower {
2525
MCContext &Ctx;
2626

2727
AsmPrinter &Printer;

llvm/lib/Target/CSKY/CSKYAsmPrinter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "llvm/MC/MCDirectives.h"
1616

1717
namespace llvm {
18-
class LLVM_LIBRARY_VISIBILITY CSKYAsmPrinter : public AsmPrinter {
18+
class CSKYAsmPrinter : public AsmPrinter {
1919
CSKYMCInstLower MCInstLowering;
2020

2121
const MCSubtargetInfo *Subtarget;

llvm/lib/Target/Lanai/LanaiMCInstLower.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class MachineOperand;
2222

2323
// LanaiMCInstLower - This class is used to lower an MachineInstr
2424
// into an MCInst.
25-
class LLVM_LIBRARY_VISIBILITY LanaiMCInstLower {
25+
class LanaiMCInstLower {
2626
MCContext &Ctx;
2727

2828
AsmPrinter &Printer;

llvm/lib/Target/LoongArch/LoongArchAsmPrinter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
namespace llvm {
2323

24-
class LLVM_LIBRARY_VISIBILITY LoongArchAsmPrinter : public AsmPrinter {
24+
class LoongArchAsmPrinter : public AsmPrinter {
2525
const MCSubtargetInfo *STI;
2626

2727
public:

llvm/lib/Target/M68k/M68kAsmPrinter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class raw_ostream;
3535
class M68kSubtarget;
3636
class M68kMachineFunctionInfo;
3737

38-
class LLVM_LIBRARY_VISIBILITY M68kAsmPrinter
38+
class M68kAsmPrinter
3939
: public AsmPrinter,
4040
public M68kMemOperandPrinter<M68kAsmPrinter, MachineInstr> {
4141

llvm/lib/Target/MSP430/MSP430MCInstLower.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace llvm {
2222

2323
/// MSP430MCInstLower - This class is used to lower an MachineInstr
2424
/// into an MCInst.
25-
class LLVM_LIBRARY_VISIBILITY MSP430MCInstLower {
25+
class MSP430MCInstLower {
2626
MCContext &Ctx;
2727

2828
AsmPrinter &Printer;

llvm/lib/Target/Mips/MipsAsmPrinter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Module;
3939
class raw_ostream;
4040
class TargetMachine;
4141

42-
class LLVM_LIBRARY_VISIBILITY MipsAsmPrinter : public AsmPrinter {
42+
class MipsAsmPrinter : public AsmPrinter {
4343
MipsTargetStreamer &getTargetStreamer() const;
4444

4545
void EmitInstrWithMacroNoAT(const MachineInstr *MI);

llvm/lib/Target/Mips/MipsMCInstLower.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class MipsAsmPrinter;
2424

2525
/// MipsMCInstLower - This class is used to lower an MachineInstr into an
2626
/// MCInst.
27-
class LLVM_LIBRARY_VISIBILITY MipsMCInstLower {
27+
class MipsMCInstLower {
2828
using MachineOperandType = MachineOperand::MachineOperandType;
2929

3030
MCContext *Ctx;

llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ namespace llvm {
5959

6060
class MCOperand;
6161

62-
class LLVM_LIBRARY_VISIBILITY NVPTXAsmPrinter : public AsmPrinter {
62+
class NVPTXAsmPrinter : public AsmPrinter {
6363

6464
class AggBuffer {
6565
// Used to buffer the emitted string for initializing global aggregates.

llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct NVPTXScopes {
3737
SmallMapVector<SyncScope::ID, NVPTX::Scope, 8> Scopes{};
3838
};
3939

40-
class LLVM_LIBRARY_VISIBILITY NVPTXDAGToDAGISel : public SelectionDAGISel {
40+
class NVPTXDAGToDAGISel : public SelectionDAGISel {
4141
const NVPTXTargetMachine &TM;
4242

4343
// If true, generate mul.wide from sext and mul

llvm/lib/Target/SPIRV/SPIRVMCInstLower.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct ModuleAnalysisInfo;
1919
} // namespace SPIRV
2020

2121
// This class is used to lower a MachineInstr into an MCInst.
22-
class LLVM_LIBRARY_VISIBILITY SPIRVMCInstLower {
22+
class SPIRVMCInstLower {
2323
public:
2424
void lower(const MachineInstr *MI, MCInst &OutMI,
2525
SPIRV::ModuleAnalysisInfo *MAI) const;

llvm/lib/Target/Sparc/LeonPasses.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
namespace llvm {
1818
class SparcSubtarget;
1919

20-
class LLVM_LIBRARY_VISIBILITY LEONMachineFunctionPass
20+
class LEONMachineFunctionPass
2121
: public MachineFunctionPass {
2222
protected:
2323
const SparcSubtarget *Subtarget = nullptr;
@@ -37,7 +37,7 @@ class LLVM_LIBRARY_VISIBILITY LEONMachineFunctionPass
3737
}
3838
};
3939

40-
class LLVM_LIBRARY_VISIBILITY ErrataWorkaround : public MachineFunctionPass {
40+
class ErrataWorkaround : public MachineFunctionPass {
4141
protected:
4242
const SparcSubtarget *ST;
4343
const TargetInstrInfo *TII;
@@ -64,7 +64,7 @@ class LLVM_LIBRARY_VISIBILITY ErrataWorkaround : public MachineFunctionPass {
6464
StringRef getPassName() const override { return "Errata workaround pass"; };
6565
};
6666

67-
class LLVM_LIBRARY_VISIBILITY InsertNOPLoad : public LEONMachineFunctionPass {
67+
class InsertNOPLoad : public LEONMachineFunctionPass {
6868
public:
6969
static char ID;
7070

@@ -78,7 +78,7 @@ class LLVM_LIBRARY_VISIBILITY InsertNOPLoad : public LEONMachineFunctionPass {
7878
}
7979
};
8080

81-
class LLVM_LIBRARY_VISIBILITY DetectRoundChange
81+
class DetectRoundChange
8282
: public LEONMachineFunctionPass {
8383
public:
8484
static char ID;
@@ -92,7 +92,7 @@ class LLVM_LIBRARY_VISIBILITY DetectRoundChange
9292
}
9393
};
9494

95-
class LLVM_LIBRARY_VISIBILITY FixAllFDIVSQRT : public LEONMachineFunctionPass {
95+
class FixAllFDIVSQRT : public LEONMachineFunctionPass {
9696
public:
9797
static char ID;
9898

llvm/lib/Target/SystemZ/SystemZAsmPrinter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class MachineInstr;
2323
class Module;
2424
class raw_ostream;
2525

26-
class LLVM_LIBRARY_VISIBILITY SystemZAsmPrinter : public AsmPrinter {
26+
class SystemZAsmPrinter : public AsmPrinter {
2727
private:
2828
MCSymbol *CurrentFnPPA1Sym; // PPA1 Symbol.
2929
MCSymbol *CurrentFnEPMarkerSym; // Entry Point Marker.

llvm/lib/Target/SystemZ/SystemZMCInstLower.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class MachineInstr;
2020
class MachineOperand;
2121
class SystemZAsmPrinter;
2222

23-
class LLVM_LIBRARY_VISIBILITY SystemZMCInstLower {
23+
class SystemZMCInstLower {
2424
MCContext &Ctx;
2525
SystemZAsmPrinter &AsmPrinter;
2626

llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
namespace llvm {
1919
class WebAssemblyTargetStreamer;
2020

21-
class LLVM_LIBRARY_VISIBILITY WebAssemblyAsmPrinter final : public AsmPrinter {
21+
class WebAssemblyAsmPrinter final : public AsmPrinter {
2222
const WebAssemblySubtarget *Subtarget;
2323
const MachineRegisterInfo *MRI;
2424
WebAssemblyFunctionInfo *MFI;

llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class MachineInstr;
2727
class MachineOperand;
2828

2929
/// This class is used to lower an MachineInstr into an MCInst.
30-
class LLVM_LIBRARY_VISIBILITY WebAssemblyMCInstLower {
30+
class WebAssemblyMCInstLower {
3131
MCContext &Ctx;
3232
WebAssemblyAsmPrinter &Printer;
3333

0 commit comments

Comments
 (0)