Make -save-temps behave like in GCC 4.5.

The -save-temps option now behaves like described in GCC 4.5 release notes
(you can specify output directory for temporary files with -save-temps=obj
-o $DIRNAME). I do not have GCC 4.5 installed, so if there are any
inconsistencies between llvmc and GCC in the implementation of this
feature, please let me know.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74190 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Mikhail Glushenkov
2009-06-25 18:20:10 +00:00
parent 3ea93ded0f
commit 7defa2d3d5
5 changed files with 77 additions and 22 deletions

View File

@ -12,8 +12,8 @@
//===----------------------------------------------------------------------===//
#include "llvm/CompilerDriver/Action.h"
#include "llvm/CompilerDriver/BuiltinOptions.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/System/Program.h"
#include <iostream>
@ -22,9 +22,6 @@
using namespace llvm;
using namespace llvmc;
extern cl::opt<bool> DryRun;
extern cl::opt<bool> VerboseMode;
namespace {
int ExecuteProgram(const std::string& name,
const StrVector& args) {