Skip to content

Commit f4c2025

Browse files
committed
[CodeGen] Reduce visibility of implementation details
NFC. llvm-svn: 241164
1 parent a8a8c60 commit f4c2025

8 files changed

+11
-11
lines changed

llvm/lib/CodeGen/AggressiveAntiDepBreaker.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace llvm {
3333
class RegisterClassInfo;
3434

3535
/// Contains all the state necessary for anti-dep breaking.
36-
class AggressiveAntiDepState {
36+
class LLVM_LIBRARY_VISIBILITY AggressiveAntiDepState {
3737
public:
3838
/// Information about a register reference within a liverange
3939
typedef struct {
@@ -108,8 +108,8 @@ class RegisterClassInfo;
108108
bool IsLive(unsigned Reg);
109109
};
110110

111-
112-
class AggressiveAntiDepBreaker : public AntiDepBreaker {
111+
class LLVM_LIBRARY_VISIBILITY AggressiveAntiDepBreaker
112+
: public AntiDepBreaker {
113113
MachineFunction& MF;
114114
MachineRegisterInfo &MRI;
115115
const TargetInstrInfo *TII;

llvm/lib/CodeGen/AllocationOrder.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace llvm {
2525
class RegisterClassInfo;
2626
class VirtRegMap;
2727

28-
class AllocationOrder {
28+
class LLVM_LIBRARY_VISIBILITY AllocationOrder {
2929
SmallVector<MCPhysReg, 16> Hints;
3030
ArrayRef<MCPhysReg> Order;
3131
int Pos;

llvm/lib/CodeGen/AntiDepBreaker.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace llvm {
2727

2828
/// This class works in conjunction with the post-RA scheduler to rename
2929
/// registers to break register anti-dependencies (WAR hazards).
30-
class AntiDepBreaker {
30+
class LLVM_LIBRARY_VISIBILITY AntiDepBreaker {
3131
public:
3232
typedef std::vector<std::pair<MachineInstr *, MachineInstr *> >
3333
DbgValueVector;

llvm/lib/CodeGen/BranchFolding.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace llvm {
2424
class TargetInstrInfo;
2525
class TargetRegisterInfo;
2626

27-
class BranchFolder {
27+
class LLVM_LIBRARY_VISIBILITY BranchFolder {
2828
public:
2929
explicit BranchFolder(bool defaultEnableTailMerge, bool CommonHoist,
3030
const MachineBlockFrequencyInfo &MBFI,

llvm/lib/CodeGen/CriticalAntiDepBreaker.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class RegisterClassInfo;
3131
class TargetInstrInfo;
3232
class TargetRegisterInfo;
3333

34-
class CriticalAntiDepBreaker : public AntiDepBreaker {
34+
class LLVM_LIBRARY_VISIBILITY CriticalAntiDepBreaker : public AntiDepBreaker {
3535
MachineFunction& MF;
3636
MachineRegisterInfo &MRI;
3737
const TargetInstrInfo *TII;

llvm/lib/CodeGen/InterferenceCache.h

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

2222
class LiveIntervals;
2323

24-
class InterferenceCache {
24+
class LLVM_LIBRARY_VISIBILITY InterferenceCache {
2525
const TargetRegisterInfo *TRI;
2626
LiveIntervalUnion *LIUArray;
2727
MachineFunction *MF;

llvm/lib/CodeGen/LiveDebugVariables.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class LiveInterval;
3131
class LiveIntervals;
3232
class VirtRegMap;
3333

34-
class LiveDebugVariables : public MachineFunctionPass {
34+
class LLVM_LIBRARY_VISIBILITY LiveDebugVariables : public MachineFunctionPass {
3535
void *pImpl;
3636
DenseMap<const Function *, DISubprogram *> FunctionDIs;
3737

llvm/lib/CodeGen/SplitKit.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class raw_ostream;
3939

4040
/// SplitAnalysis - Analyze a LiveInterval, looking for live range splitting
4141
/// opportunities.
42-
class SplitAnalysis {
42+
class LLVM_LIBRARY_VISIBILITY SplitAnalysis {
4343
public:
4444
const MachineFunction &MF;
4545
const VirtRegMap &VRM;
@@ -208,7 +208,7 @@ class SplitAnalysis {
208208
/// - Finish the current interval with closeIntv and repeat from 2.
209209
/// - Rewrite instructions with finish().
210210
///
211-
class SplitEditor {
211+
class LLVM_LIBRARY_VISIBILITY SplitEditor {
212212
SplitAnalysis &SA;
213213
LiveIntervals &LIS;
214214
VirtRegMap &VRM;

0 commit comments

Comments
 (0)