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:
Jeff Cohen 2004-12-15 04:08:15 +00:00
parent 6af3d26526
commit ab68df02bc
3 changed files with 4 additions and 12 deletions

View File

@ -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();
}

View File

@ -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 + "'");

View File

@ -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 + "'");