diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-13 18:41:28 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-13 18:41:28 +0000 |
commit | 79fc9249574cee0ec69d920e5a16497ba799020a (patch) | |
tree | 254007bc813b01517db912dd4641b018f0aae860 /lib/System/Path.cpp | |
parent | 2923f345334432ec8407aebd1ece560a531e9e08 (diff) |
Genericize implementation of GetDLLSuffix now that we have LTDL_SHLIB_EXT
available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18904 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Path.cpp')
-rw-r--r-- | lib/System/Path.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/System/Path.cpp b/lib/System/Path.cpp index 1a6d030f89..d0ee1a3ae8 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. |