summaryrefslogtreecommitdiff
path: root/lib/Support/LeakDetector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/LeakDetector.cpp')
-rw-r--r--lib/Support/LeakDetector.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Support/LeakDetector.cpp b/lib/Support/LeakDetector.cpp
index 24c946ab6e..ffb081a998 100644
--- a/lib/Support/LeakDetector.cpp
+++ b/lib/Support/LeakDetector.cpp
@@ -15,6 +15,8 @@
#include "llvm/Value.h"
#include <set>
+namespace llvm {
+
// Lazily allocate set so that release build doesn't have to do anything.
static std::set<const void*> *Objects = 0;
static std::set<const Value*> *LLVMObjects = 0;
@@ -87,3 +89,5 @@ void LeakDetector::checkForGarbageImpl(const std::string &Message) {
Objects = 0; LLVMObjects = 0;
}
}
+
+} // End llvm namespace