From: Sanjiv Gupta Date: Mon, 6 Jul 2009 10:34:10 +0000 (+0000) Subject: Reverting back the changes checked-in accidently. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2f8ca29a70448aa6fe04c54abf598599653bd841;p=oota-llvm.git Reverting back the changes checked-in accidently. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74823 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CompilerDriver/BuiltinOptions.cpp b/lib/CompilerDriver/BuiltinOptions.cpp index 126346f68da..a3364e8a72f 100644 --- a/lib/CompilerDriver/BuiltinOptions.cpp +++ b/lib/CompilerDriver/BuiltinOptions.cpp @@ -52,5 +52,4 @@ cl::opt SaveTemps "Use current working directory"), clEnumValN(SaveTempsEnum::Obj, "", "Same as 'cwd'"), clEnumValEnd), - //cl::ValueOptional); - cl::Hidden); + cl::ValueOptional); diff --git a/lib/CompilerDriver/Main.cpp b/lib/CompilerDriver/Main.cpp index f4cacb38f18..7d1a3d8fbc4 100644 --- a/lib/CompilerDriver/Main.cpp +++ b/lib/CompilerDriver/Main.cpp @@ -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();