diff options
author | Dan Gohman <gohman@apple.com> | 2008-04-10 21:11:47 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-04-10 21:11:47 +0000 |
commit | 3bd659ba20c235caabb0df6f93888d898197afb0 (patch) | |
tree | e1558617e3cb2e7bac20807d0c6a9d3fa4d5a88f /lib/VMCore/LeakDetector.cpp | |
parent | eee962e1cebb1b70ccd3f5d35f3a5a8c9ba942b5 (diff) | |
download | external_llvm-3bd659ba20c235caabb0df6f93888d898197afb0.zip external_llvm-3bd659ba20c235caabb0df6f93888d898197afb0.tar.gz external_llvm-3bd659ba20c235caabb0df6f93888d898197afb0.tar.bz2 |
Make several symbols static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49496 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/LeakDetector.cpp')
-rw-r--r-- | lib/VMCore/LeakDetector.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/VMCore/LeakDetector.cpp b/lib/VMCore/LeakDetector.cpp index 41e0873..9f3584e 100644 --- a/lib/VMCore/LeakDetector.cpp +++ b/lib/VMCore/LeakDetector.cpp @@ -79,22 +79,22 @@ namespace { const char* const Name; }; - LeakDetectorImpl<void> *Objects; - LeakDetectorImpl<Value> *LLVMObjects; + static LeakDetectorImpl<void> *Objects; + static LeakDetectorImpl<Value> *LLVMObjects; - LeakDetectorImpl<void> &getObjects() { + static LeakDetectorImpl<void> &getObjects() { if (Objects == 0) Objects = new LeakDetectorImpl<void>("GENERIC"); return *Objects; } - LeakDetectorImpl<Value> &getLLVMObjects() { + static LeakDetectorImpl<Value> &getLLVMObjects() { if (LLVMObjects == 0) LLVMObjects = new LeakDetectorImpl<Value>("LLVM"); return *LLVMObjects; } - void clearGarbage() { + static void clearGarbage() { delete Objects; delete LLVMObjects; Objects = 0; |