aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/DynamicLinker.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-14 21:35:53 +0000
committerChris Lattner <sabre@nondot.org>2003-12-14 21:35:53 +0000
commit2cdd21c2e4d855500dfb53f77aa74da53ccf9de6 (patch)
tree98803f88a663bba4b7955f121b58306f5ae11d85 /lib/Support/DynamicLinker.cpp
parentb6d465f8131f5fb0b8e565685fb3395ed9aecbdb (diff)
downloadexternal_llvm-2cdd21c2e4d855500dfb53f77aa74da53ccf9de6.zip
external_llvm-2cdd21c2e4d855500dfb53f77aa74da53ccf9de6.tar.gz
external_llvm-2cdd21c2e4d855500dfb53f77aa74da53ccf9de6.tar.bz2
Finegrainify namespacification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10464 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/DynamicLinker.cpp')
-rw-r--r--lib/Support/DynamicLinker.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/Support/DynamicLinker.cpp b/lib/Support/DynamicLinker.cpp
index 1c9385e..801f93b 100644
--- a/lib/Support/DynamicLinker.cpp
+++ b/lib/Support/DynamicLinker.cpp
@@ -22,10 +22,9 @@
#include "Support/DynamicLinker.h"
#include "Config/dlfcn.h"
#include <cassert>
+using namespace llvm;
-namespace llvm {
-
-bool LinkDynamicObject (const char *filename, std::string *ErrorMessage) {
+bool llvm::LinkDynamicObject (const char *filename, std::string *ErrorMessage) {
#if defined (HAVE_DLOPEN)
if (dlopen (filename, RTLD_NOW | RTLD_GLOBAL) == 0) {
if (ErrorMessage) *ErrorMessage = dlerror ();
@@ -37,7 +36,7 @@ bool LinkDynamicObject (const char *filename, std::string *ErrorMessage) {
#endif
}
-void *GetAddressOfSymbol (const char *symbolName) {
+void *llvm::GetAddressOfSymbol (const char *symbolName) {
#if defined (HAVE_DLOPEN)
#ifdef RTLD_DEFAULT
return dlsym (RTLD_DEFAULT, symbolName);
@@ -51,8 +50,6 @@ void *GetAddressOfSymbol (const char *symbolName) {
}
// soft, cushiony C++ interface.
-void *GetAddressOfSymbol (const std::string &symbolName) {
+void *llvm::GetAddressOfSymbol (const std::string &symbolName) {
return GetAddressOfSymbol (symbolName.c_str ());
}
-
-} // End llvm namespace