[llvm-commits] CVS: llvm/lib/VMCore/BasicBlock.cpp LeakDetector.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Jun 28 15:57:12 PDT 2006
Changes in directory llvm/lib/VMCore:
BasicBlock.cpp updated: 1.71 -> 1.72
LeakDetector.cpp updated: 1.13 -> 1.14
---
Log message:
Use hidden visibility to reduce codesize
---
Diffs of the changes: (+6 -4)
BasicBlock.cpp | 3 ++-
LeakDetector.cpp | 7 ++++---
2 files changed, 6 insertions(+), 4 deletions(-)
Index: llvm/lib/VMCore/BasicBlock.cpp
diff -u llvm/lib/VMCore/BasicBlock.cpp:1.71 llvm/lib/VMCore/BasicBlock.cpp:1.72
--- llvm/lib/VMCore/BasicBlock.cpp:1.71 Tue Jun 13 23:43:14 2006
+++ llvm/lib/VMCore/BasicBlock.cpp Wed Jun 28 17:57:00 2006
@@ -17,6 +17,7 @@
#include "llvm/Type.h"
#include "llvm/Support/CFG.h"
#include "llvm/Support/LeakDetector.h"
+#include "llvm/Support/Visibility.h"
#include "SymbolTableListTraitsImpl.h"
#include <algorithm>
using namespace llvm;
@@ -24,7 +25,7 @@
namespace {
/// DummyInst - An instance of this class is used to mark the end of the
/// instruction list. This is not a real instruction.
- struct DummyInst : public Instruction {
+ struct VISIBILITY_HIDDEN DummyInst : public Instruction {
DummyInst() : Instruction(Type::VoidTy, OtherOpsEnd, 0, 0) {
// This should not be garbage monitored.
LeakDetector::removeGarbageObject(this);
Index: llvm/lib/VMCore/LeakDetector.cpp
diff -u llvm/lib/VMCore/LeakDetector.cpp:1.13 llvm/lib/VMCore/LeakDetector.cpp:1.14
--- llvm/lib/VMCore/LeakDetector.cpp:1.13 Thu Apr 21 18:46:51 2005
+++ llvm/lib/VMCore/LeakDetector.cpp Wed Jun 28 17:57:00 2006
@@ -12,6 +12,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/Support/LeakDetector.h"
+#include "llvm/Support/Visibility.h"
#include "llvm/Value.h"
#include <iostream>
#include <set>
@@ -19,17 +20,17 @@
namespace {
template <class T>
- struct PrinterTrait {
+ struct VISIBILITY_HIDDEN PrinterTrait {
static void print(const T* P) { std::cerr << P; }
};
template<>
- struct PrinterTrait<Value> {
+ struct VISIBILITY_HIDDEN PrinterTrait<Value> {
static void print(const Value* P) { std::cerr << *P; }
};
template <typename T>
- struct LeakDetectorImpl {
+ struct VISIBILITY_HIDDEN LeakDetectorImpl {
LeakDetectorImpl(const char* const name) : Cache(0), Name(name) { }
// Because the most common usage pattern, by far, is to add a
More information about the llvm-commits
mailing list