mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-11 06:38:20 +00:00
Reverting back the changes checked-in accidently.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74823 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -52,5 +52,4 @@ cl::opt<SaveTempsEnum::Values> SaveTemps
|
|||||||
"Use current working directory"),
|
"Use current working directory"),
|
||||||
clEnumValN(SaveTempsEnum::Obj, "", "Same as 'cwd'"),
|
clEnumValN(SaveTempsEnum::Obj, "", "Same as 'cwd'"),
|
||||||
clEnumValEnd),
|
clEnumValEnd),
|
||||||
//cl::ValueOptional);
|
cl::ValueOptional);
|
||||||
cl::Hidden);
|
|
||||||
|
@ -31,17 +31,6 @@ namespace {
|
|||||||
sys::Path getTempDir() {
|
sys::Path getTempDir() {
|
||||||
sys::Path tempDir;
|
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.
|
// GCC 4.5-style -save-temps handling.
|
||||||
if (SaveTemps == SaveTempsEnum::Unset) {
|
if (SaveTemps == SaveTempsEnum::Unset) {
|
||||||
tempDir = sys::Path::GetTemporaryDirectory();
|
tempDir = sys::Path::GetTemporaryDirectory();
|
||||||
|
Reference in New Issue
Block a user