summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Path.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-13 18:41:28 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-13 18:41:28 +0000
commite05ab4a1ec3caab4fb177a2303aa636a1dbdcad3 (patch)
tree76629606a9cda0465147b84be2a69dd24e637c3d /llvm/lib/System/Path.cpp
parent73fc52555743cab63365755c6a2ed840887c2f7a (diff)
downloadbcm5719-llvm-e05ab4a1ec3caab4fb177a2303aa636a1dbdcad3.tar.gz
bcm5719-llvm-e05ab4a1ec3caab4fb177a2303aa636a1dbdcad3.zip
Genericize implementation of GetDLLSuffix now that we have LTDL_SHLIB_EXT
available. llvm-svn: 18904
Diffstat (limited to 'llvm/lib/System/Path.cpp')
-rw-r--r--llvm/lib/System/Path.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/System/Path.cpp b/llvm/lib/System/Path.cpp
index 1a6d030f896..d0ee1a3ae89 100644
--- a/llvm/lib/System/Path.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud