Finegrainify namespacification

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10464 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2003-12-14 21:35:53 +00:00
parent b6d465f813
commit 2cdd21c2e4
18 changed files with 106 additions and 152 deletions
+4 -7
View File
@@ -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