diff options
author | Chris Lattner <sabre@nondot.org> | 2006-06-28 22:17:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-06-28 22:17:39 +0000 |
commit | f8c68f694c25b1ae8c0e5adb2a19432cb405d232 (patch) | |
tree | 0094d1f3f74481e132af7d48d36ca3e2a1d306ad /lib/CodeGen/VirtRegMap.cpp | |
parent | f4b546110c7b9f0c24be26cfe1eccdd570ee9fee (diff) |
Shave another 27K off libllvmgcc.dylib with visibility hidden
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/VirtRegMap.cpp')
-rw-r--r-- | lib/CodeGen/VirtRegMap.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp index 533a53b8e8..5263f887cd 100644 --- a/lib/CodeGen/VirtRegMap.cpp +++ b/lib/CodeGen/VirtRegMap.cpp @@ -26,6 +26,7 @@ #include "llvm/Target/TargetInstrInfo.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/Debug.h" +#include "llvm/Support/Visibility.h" #include "llvm/ADT/Statistic.h" #include "llvm/ADT/STLExtras.h" #include <algorithm> @@ -130,7 +131,7 @@ void VirtRegMap::dump() const { print(std::cerr); } Spiller::~Spiller() {} namespace { - struct SimpleSpiller : public Spiller { + struct VISIBILITY_HIDDEN SimpleSpiller : public Spiller { bool runOnMachineFunction(MachineFunction& mf, VirtRegMap &VRM); }; } @@ -204,7 +205,7 @@ namespace { /// block to attempt to keep spills in registers as much as possible for /// blocks that have low register pressure (the vreg may be spilled due to /// register pressure in other blocks). - class LocalSpiller : public Spiller { + class VISIBILITY_HIDDEN LocalSpiller : public Spiller { const MRegisterInfo *MRI; const TargetInstrInfo *TII; public: @@ -240,7 +241,8 @@ namespace { /// per-stack-slot basis as the low bit in the value of the SpillSlotsAvailable /// entries. The predicate 'canClobberPhysReg()' checks this bit and /// addAvailable sets it if. -class AvailableSpills { +namespace { +class VISIBILITY_HIDDEN AvailableSpills { const MRegisterInfo *MRI; const TargetInstrInfo *TII; @@ -304,6 +306,7 @@ public: /// for this slot lives in (as the previous value is dead now). void ModifyStackSlot(int Slot); }; +} /// ClobberPhysRegOnly - This is called when the specified physreg changes /// value. We use this to invalidate any info about stuff we thing lives in it. @@ -379,7 +382,7 @@ namespace { /// ReuseInfo - This maintains a collection of ReuseOp's for each operand that /// is reused instead of reloaded. - class ReuseInfo { + class VISIBILITY_HIDDEN ReuseInfo { MachineInstr &MI; std::vector<ReusedOp> Reuses; public: |