Genericize implementation of GetDLLSuffix now that we have LTDL_SHLIB_EXT
available.
llvm-svn: 18904
diff --git a/llvm/lib/System/Path.cpp b/llvm/lib/System/Path.cpp
index 1a6d030..d0ee1a3 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 @@
return sys::Path();
}
+std::string
+Path::GetDLLSuffix() {
+ return LTDL_SHLIB_EXT;
+}
+
}
// Include the truly platform-specific parts of this class.