mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-02 22:32:08 +00:00
Fix VC++ compilation errors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18953 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6af3d26526
commit
ab68df02bc
@ -26,8 +26,10 @@ using namespace sys;
|
||||
Path
|
||||
Path::GetLLVMConfigDir() {
|
||||
Path result;
|
||||
#ifdef LLVM_ETCDIR
|
||||
if (result.setDirectory(LLVM_ETCDIR))
|
||||
return result;
|
||||
#endif
|
||||
return GetLLVMDefaultConfigDir();
|
||||
}
|
||||
|
||||
|
@ -179,11 +179,6 @@ Path::GetLLVMDefaultConfigDir() {
|
||||
return Path("/etc/llvm/");
|
||||
}
|
||||
|
||||
Path
|
||||
Path::GetLLVMConfigDir() {
|
||||
return GetLLVMDefaultConfigDir();
|
||||
}
|
||||
|
||||
Path
|
||||
Path::GetUserHomeDirectory() {
|
||||
const char* home = getenv("HOME");
|
||||
@ -600,7 +595,7 @@ Path::makeUnique() {
|
||||
dir.elideFile();
|
||||
std::string fname = this->getLast();
|
||||
|
||||
char* newName = alloca(MAX_PATH+1);
|
||||
char newName[MAX_PATH + 1];
|
||||
if (!GetTempFileName(dir.c_str(), fname.c_str(), 0, newName))
|
||||
ThrowError("Cannot make unique filename for '" + path + "'");
|
||||
|
||||
|
@ -179,11 +179,6 @@ Path::GetLLVMDefaultConfigDir() {
|
||||
return Path("/etc/llvm/");
|
||||
}
|
||||
|
||||
Path
|
||||
Path::GetLLVMConfigDir() {
|
||||
return GetLLVMDefaultConfigDir();
|
||||
}
|
||||
|
||||
Path
|
||||
Path::GetUserHomeDirectory() {
|
||||
const char* home = getenv("HOME");
|
||||
@ -600,7 +595,7 @@ Path::makeUnique() {
|
||||
dir.elideFile();
|
||||
std::string fname = this->getLast();
|
||||
|
||||
char* newName = alloca(MAX_PATH+1);
|
||||
char newName[MAX_PATH + 1];
|
||||
if (!GetTempFileName(dir.c_str(), fname.c_str(), 0, newName))
|
||||
ThrowError("Cannot make unique filename for '" + path + "'");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user