[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp SelectionDAGISel.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Jun 28 16:17:40 PDT 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
ScheduleDAGRRList.cpp updated: 1.7 -> 1.8
SelectionDAGISel.cpp updated: 1.257 -> 1.258
---
Log message:
Use hidden visibility to make symbols in an anonymous namespace get
dropped. This shrinks libllvmgcc.dylib another 67K
---
Diffs of the changes: (+6 -3)
ScheduleDAGRRList.cpp | 6 ++++--
SelectionDAGISel.cpp | 3 ++-
2 files changed, 6 insertions(+), 3 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp:1.7 llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp:1.8
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp:1.7 Wed Jun 28 17:17:39 2006
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp Wed Jun 28 18:17:23 2006
@@ -430,7 +430,8 @@
namespace {
template<class SF>
- class RegReductionPriorityQueue : public SchedulingPriorityQueue {
+ class VISIBILITY_HIDDEN RegReductionPriorityQueue
+ : public SchedulingPriorityQueue {
std::priority_queue<SUnit*, std::vector<SUnit*>, SF> Queue;
public:
@@ -463,7 +464,8 @@
};
template<class SF>
- class BURegReductionPriorityQueue : public RegReductionPriorityQueue<SF> {
+ class VISIBILITY_HIDDEN BURegReductionPriorityQueue
+ : public RegReductionPriorityQueue<SF> {
// SUnits - The SUnits for the current graph.
const std::vector<SUnit> *SUnits;
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.257 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.258
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.257 Thu Jun 15 03:11:54 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Wed Jun 28 18:17:23 2006
@@ -42,6 +42,7 @@
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/Debug.h"
+#include "llvm/Support/Visibility.h"
#include <map>
#include <set>
#include <iostream>
@@ -101,7 +102,7 @@
/// particular value is assigned and the type information about the value.
/// This is needed because values can be promoted into larger registers and
/// expanded into multiple smaller registers than the value.
- struct RegsForValue {
+ struct VISIBILITY_HIDDEN RegsForValue {
/// Regs - This list hold the register (for legal and promoted values)
/// or register set (for expanded values) that the value should be assigned
/// to.
More information about the llvm-commits
mailing list