mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
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
This commit is contained in:
parent
2923f34533
commit
79fc924957
@ -48,11 +48,6 @@ Path::GetTemporaryDirectory() {
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string
|
||||
Path::GetDLLSuffix() {
|
||||
return "so";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// vim: sw=2 smartindent smarttab tw=80 autoindent expandtab
|
||||
|
@ -47,11 +47,6 @@ Path::GetTemporaryDirectory() {
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string
|
||||
Path::GetDLLSuffix() {
|
||||
return "dll.a";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// vim: sw=2 smartindent smarttab tw=80 autoindent expandtab
|
||||
|
@ -43,11 +43,6 @@ Path::GetTemporaryDirectory() {
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string
|
||||
Path::GetDLLSuffix() {
|
||||
return "dylib";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// vim: sw=2 smartindent smarttab tw=80 autoindent expandtab
|
||||
|
@ -45,11 +45,6 @@ Path::GetTemporaryDirectory() {
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string
|
||||
Path::GetDLLSuffix() {
|
||||
return "so";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// vim: sw=2 smartindent smarttab tw=80 autoindent expandtab
|
||||
|
@ -45,11 +45,6 @@ Path::GetTemporaryDirectory() {
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string
|
||||
Path::GetDLLSuffix() {
|
||||
return "dll";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// vim: sw=2 smartindent smarttab tw=80 autoindent expandtab
|
||||
|
@ -45,11 +45,6 @@ Path::GetTemporaryDirectory() {
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string
|
||||
Path::GetDLLSuffix() {
|
||||
return "so";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// vim: sw=2 smartindent smarttab tw=80 autoindent expandtab
|
||||
|
@ -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.
|
||||
|
@ -47,11 +47,6 @@ Path::GetTemporaryDirectory() {
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string
|
||||
Path::GetDLLSuffix() {
|
||||
return "so";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// vim: sw=2 smartindent smarttab tw=80 autoindent expandtab
|
||||
|
@ -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, ';');
|
||||
|
@ -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, ';');
|
||||
|
Loading…
Reference in New Issue
Block a user