mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-05 17:18:55 +00:00
llvm-uselistorder: Add -save-temps option
This is part of PR5680. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214123 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
beb0ac5364
commit
0aed6e729d
@ -40,6 +40,9 @@ static cl::opt<std::string> InputFilename(cl::Positional,
|
||||
cl::init("-"),
|
||||
cl::value_desc("filename"));
|
||||
|
||||
static cl::opt<bool> SaveTemps("save-temps", cl::desc("Save temp files"),
|
||||
cl::init(false));
|
||||
|
||||
namespace {
|
||||
|
||||
struct TempFile {
|
||||
@ -89,7 +92,7 @@ bool TempFile::init(const std::string &Ext) {
|
||||
assert(!Vector.empty());
|
||||
|
||||
Filename.assign(Vector.data(), Vector.data() + Vector.size());
|
||||
Remover.setFile(Filename);
|
||||
Remover.setFile(Filename, !SaveTemps);
|
||||
DEBUG(dbgs() << " - filename = " << Filename << "\n");
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user