summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CompilerDriver
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-07-06 10:34:10 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-07-06 10:34:10 +0000
commita0396d9013addf2900b1ee3ddcddd7bc96035285 (patch)
treecc1762af2740c394c88d8cef744dcfd94493274d /llvm/lib/CompilerDriver
parentb89d3db1fda59ab90dd2ceb386e2df6e0843692b (diff)
downloadbcm5719-llvm-a0396d9013addf2900b1ee3ddcddd7bc96035285.tar.gz
bcm5719-llvm-a0396d9013addf2900b1ee3ddcddd7bc96035285.zip
Reverting back the changes checked-in accidently.
llvm-svn: 74823
Diffstat (limited to 'llvm/lib/CompilerDriver')
-rw-r--r--llvm/lib/CompilerDriver/BuiltinOptions.cpp3
-rw-r--r--llvm/lib/CompilerDriver/Main.cpp11
2 files changed, 1 insertions, 13 deletions
diff --git a/llvm/lib/CompilerDriver/BuiltinOptions.cpp b/llvm/lib/CompilerDriver/BuiltinOptions.cpp
index 126346f68da..a3364e8a72f 100644
--- a/llvm/lib/CompilerDriver/BuiltinOptions.cpp
+++ b/llvm/lib/CompilerDriver/BuiltinOptions.cpp
@@ -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);
diff --git a/llvm/lib/CompilerDriver/Main.cpp b/llvm/lib/CompilerDriver/Main.cpp
index f4cacb38f18..7d1a3d8fbc4 100644
--- a/llvm/lib/CompilerDriver/Main.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud