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 | 9ef7e06ccef062dfa5df516913b12b7c3ca17805 (patch) | |
tree | 0c584985a01c0c82c6bb24db68a73c122d13cdf8 /lib/VMCore/LeakDetector.cpp | |
parent | f8c68f694c25b1ae8c0e5adb2a19432cb405d232 (diff) |
Use hidden visibility to reduce codesize
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28974 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/LeakDetector.cpp')
-rw-r--r-- | lib/VMCore/LeakDetector.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/VMCore/LeakDetector.cpp b/lib/VMCore/LeakDetector.cpp index 7cf8e0d99a..e497766924 100644 --- a/lib/VMCore/LeakDetector.cpp +++ b/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 |