forked from OSchip/llvm-project
Reverting back the changes checked-in accidently.
llvm-svn: 74823
This commit is contained in:
parent
b89d3db1fd
commit
a0396d9013
|
@ -52,5 +52,4 @@ cl::opt<SaveTempsEnum::Values> SaveTemps
|
|||
"Use current working directory"),
|
||||
clEnumValN(SaveTempsEnum::Obj, "", "Same as 'cwd'"),
|
||||
clEnumValEnd),
|
||||
//cl::ValueOptional);
|
||||
cl::Hidden);
|
||||
cl::ValueOptional);
|
||||
|
|
|
@ -31,17 +31,6 @@ namespace {
|
|||
sys::Path getTempDir() {
|
||||
sys::Path tempDir;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
std::string p = "tmp-objs";
|
||||
tempDir = sys::Path(p);
|
||||
if (!tempDir.exists()) {
|
||||
std::string ErrMsg;
|
||||
if (tempDir.createDirectoryOnDisk(true, &ErrMsg))
|
||||
throw std::runtime_error(ErrMsg);
|
||||
}
|
||||
return tempDir;
|
||||
/////////////////////////////////////////////
|
||||
|
||||
// GCC 4.5-style -save-temps handling.
|
||||
if (SaveTemps == SaveTempsEnum::Unset) {
|
||||
tempDir = sys::Path::GetTemporaryDirectory();
|
||||
|
|
Loading…
Reference in New Issue