diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-06-28 22:57:00 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-06-28 22:57:00 +0000 |
| commit | d6cba04607e3f90acc5765f8a7e5f393b0df0c9b (patch) | |
| tree | 0318f45a66aebb194320b315b813845cb827181a | |
| parent | e097e6f7c7cd38cee8b8ee40cfa21a131f28ab34 (diff) | |
| download | bcm5719-llvm-d6cba04607e3f90acc5765f8a7e5f393b0df0c9b.tar.gz bcm5719-llvm-d6cba04607e3f90acc5765f8a7e5f393b0df0c9b.zip | |
Use hidden visibility to reduce codesize
llvm-svn: 28974
| -rw-r--r-- | llvm/lib/VMCore/BasicBlock.cpp | 3 | ||||
| -rw-r--r-- | llvm/lib/VMCore/LeakDetector.cpp | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/BasicBlock.cpp b/llvm/lib/VMCore/BasicBlock.cpp index 1b7100c68b2..13907c10389 100644 --- a/llvm/lib/VMCore/BasicBlock.cpp +++ b/llvm/lib/VMCore/BasicBlock.cpp @@ -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 @@ using namespace llvm; 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); diff --git a/llvm/lib/VMCore/LeakDetector.cpp b/llvm/lib/VMCore/LeakDetector.cpp index 7cf8e0d99ae..e497766924e 100644 --- a/llvm/lib/VMCore/LeakDetector.cpp +++ b/llvm/lib/VMCore/LeakDetector.cpp @@ -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 @@ using namespace llvm; 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 |

