summaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-07 01:32:21 +0000
committerDan Gohman <gohman@apple.com>2009-08-07 01:32:21 +0000
commit7db949df789383acce98ef072f08794fdd5bd04e (patch)
tree30a8b3e2bea69508eb5da0dbca173cbe23052743 /lib/ExecutionEngine
parent748f98f90836dbb4c36fea67c9ebe7b6bb13255e (diff)
downloadexternal_llvm-7db949df789383acce98ef072f08794fdd5bd04e.zip
external_llvm-7db949df789383acce98ef072f08794fdd5bd04e.tar.gz
external_llvm-7db949df789383acce98ef072f08794fdd5bd04e.tar.bz2
Fix a bunch of namespace pollution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78363 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/JIT/Intercept.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/JIT/Intercept.cpp b/lib/ExecutionEngine/JIT/Intercept.cpp
index 0dde845..3314339 100644
--- a/lib/ExecutionEngine/JIT/Intercept.cpp
+++ b/lib/ExecutionEngine/JIT/Intercept.cpp
@@ -57,6 +57,7 @@ static void runAtExitHandlers() {
* linking with libc_nonshared.a and -Wl,--export-dynamic doesn't make 'stat'
* available as an exported symbol, so we have to add it explicitly.
*/
+namespace {
class StatSymbols {
public:
StatSymbols() {
@@ -73,6 +74,7 @@ public:
sys::DynamicLibrary::AddSymbol("mknod", (void*)(intptr_t)mknod);
}
};
+}
static StatSymbols initStatSymbols;
#endif // __linux__