summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-15 17:08:50 +0000
committerDan Gohman <gohman@apple.com>2010-04-15 17:08:50 +0000
commitb29cda9b3c39fbbd53db44dbc5075d5445a98200 (patch)
treeb858a95e9c0cad74c71661ecada32e5fdbd6041a /llvm/lib/System
parent345356ee9a30b0d7653219e1d97e60c5cd116241 (diff)
downloadbcm5719-llvm-b29cda9b3c39fbbd53db44dbc5075d5445a98200.tar.gz
bcm5719-llvm-b29cda9b3c39fbbd53db44dbc5075d5445a98200.zip
Fix a bunch of namespace polution.
llvm-svn: 101376
Diffstat (limited to 'llvm/lib/System')
-rw-r--r--llvm/lib/System/DynamicLibrary.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/lib/System/DynamicLibrary.cpp b/llvm/lib/System/DynamicLibrary.cpp
index ebc8acf3061..6f6890c06c4 100644
--- a/llvm/lib/System/DynamicLibrary.cpp
+++ b/llvm/lib/System/DynamicLibrary.cpp
@@ -24,12 +24,18 @@
// Collection of symbol name/value pairs to be searched prior to any libraries.
static std::map<std::string, void*> *ExplicitSymbols = 0;
-static struct ExplicitSymbolsDeleter {
+namespace {
+
+struct ExplicitSymbolsDeleter {
~ExplicitSymbolsDeleter() {
if (ExplicitSymbols)
delete ExplicitSymbols;
}
-} Dummy;
+};
+
+}
+
+static ExplicitSymbolsDeleter Dummy;
void llvm::sys::DynamicLibrary::AddSymbol(const char* symbolName,
void *symbolValue) {
OpenPOWER on IntegriCloud