diff options
-rw-r--r-- | lib/System/AIX/Path.cpp | 5 | ||||
-rw-r--r-- | lib/System/Cygwin/Path.cpp | 5 | ||||
-rw-r--r-- | lib/System/Darwin/Path.cpp | 5 | ||||
-rw-r--r-- | lib/System/FreeBSD/Path.cpp | 5 | ||||
-rw-r--r-- | lib/System/Interix/Path.cpp | 5 | ||||
-rw-r--r-- | lib/System/Linux/Path.cpp | 5 | ||||
-rw-r--r-- | lib/System/Path.cpp | 6 | ||||
-rw-r--r-- | lib/System/SunOS/Path.cpp | 5 | ||||
-rw-r--r-- | lib/System/Win32/Path.cpp | 5 | ||||
-rw-r--r-- | lib/System/Win32/Path.inc | 5 |
10 files changed, 6 insertions, 45 deletions
diff --git a/lib/System/AIX/Path.cpp b/lib/System/AIX/Path.cpp index 8eddb96..56a006d 100644 --- a/lib/System/AIX/Path.cpp +++ b/lib/System/AIX/Path.cpp @@ -48,11 +48,6 @@ Path::GetTemporaryDirectory() { return result; } -std::string -Path::GetDLLSuffix() { - return "so"; -} - } // vim: sw=2 smartindent smarttab tw=80 autoindent expandtab diff --git a/lib/System/Cygwin/Path.cpp b/lib/System/Cygwin/Path.cpp index 01a40da..43dae2f 100644 --- a/lib/System/Cygwin/Path.cpp +++ b/lib/System/Cygwin/Path.cpp @@ -47,11 +47,6 @@ Path::GetTemporaryDirectory() { return result; } -std::string -Path::GetDLLSuffix() { - return "dll.a"; -} - } // vim: sw=2 smartindent smarttab tw=80 autoindent expandtab diff --git a/lib/System/Darwin/Path.cpp b/lib/System/Darwin/Path.cpp index ed39107..d34ad80 100644 --- a/lib/System/Darwin/Path.cpp +++ b/lib/System/Darwin/Path.cpp @@ -43,11 +43,6 @@ Path::GetTemporaryDirectory() { return result; } -std::string -Path::GetDLLSuffix() { - return "dylib"; -} - } // vim: sw=2 smartindent smarttab tw=80 autoindent expandtab diff --git a/lib/System/FreeBSD/Path.cpp b/lib/System/FreeBSD/Path.cpp index 7dac6fd..837f830 100644 --- a/lib/System/FreeBSD/Path.cpp +++ b/lib/System/FreeBSD/Path.cpp @@ -45,11 +45,6 @@ Path::GetTemporaryDirectory() { return result; } -std::string -Path::GetDLLSuffix() { - return "so"; -} - } // vim: sw=2 smartindent smarttab tw=80 autoindent expandtab diff --git a/lib/System/Interix/Path.cpp b/lib/System/Interix/Path.cpp index 45ab13a..4fb38cb 100644 --- a/lib/System/Interix/Path.cpp +++ b/lib/System/Interix/Path.cpp @@ -45,11 +45,6 @@ Path::GetTemporaryDirectory() { return result; } -std::string -Path::GetDLLSuffix() { - return "dll"; -} - } // vim: sw=2 smartindent smarttab tw=80 autoindent expandtab diff --git a/lib/System/Linux/Path.cpp b/lib/System/Linux/Path.cpp index 5238c1f..d0eccb7 100644 --- a/lib/System/Linux/Path.cpp +++ b/lib/System/Linux/Path.cpp @@ -45,11 +45,6 @@ Path::GetTemporaryDirectory() { return result; } -std::string -Path::GetDLLSuffix() { - return "so"; -} - } // vim: sw=2 smartindent smarttab tw=80 autoindent expandtab diff --git a/lib/System/Path.cpp b/lib/System/Path.cpp index 1a6d030..d0ee1a3 100644 --- a/lib/System/Path.cpp +++ b/lib/System/Path.cpp @@ -12,6 +12,7 @@ //===----------------------------------------------------------------------===// #include "llvm/System/Path.h" +#include "llvm/Config/config.h" #include <cassert> namespace llvm { @@ -80,6 +81,11 @@ Path::FindLibrary(std::string& name) { return sys::Path(); } +std::string +Path::GetDLLSuffix() { + return LTDL_SHLIB_EXT; +} + } // Include the truly platform-specific parts of this class. diff --git a/lib/System/SunOS/Path.cpp b/lib/System/SunOS/Path.cpp index db6db19..346615d 100644 --- a/lib/System/SunOS/Path.cpp +++ b/lib/System/SunOS/Path.cpp @@ -47,11 +47,6 @@ Path::GetTemporaryDirectory() { return result; } -std::string -Path::GetDLLSuffix() { - return "so"; -} - } // vim: sw=2 smartindent smarttab tw=80 autoindent expandtab diff --git a/lib/System/Win32/Path.cpp b/lib/System/Win32/Path.cpp index 8201dd4..e847154 100644 --- a/lib/System/Win32/Path.cpp +++ b/lib/System/Win32/Path.cpp @@ -118,11 +118,6 @@ Path::GetRootDirectory() { return result; } -std::string -Path::GetDLLSuffix() { - return "dll"; -} - static void getPathList(const char*path, std::vector<sys::Path>& Paths) { const char* at = path; const char* delim = strchr(at, ';'); diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc index 8201dd4..e847154 100644 --- a/lib/System/Win32/Path.inc +++ b/lib/System/Win32/Path.inc @@ -118,11 +118,6 @@ Path::GetRootDirectory() { return result; } -std::string -Path::GetDLLSuffix() { - return "dll"; -} - static void getPathList(const char*path, std::vector<sys::Path>& Paths) { const char* at = path; const char* delim = strchr(at, ';'); |