This is part of PR5680.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214123
91177308-0d34-0410-b5e6-
96231b3b80d8
cl::init("-"),
cl::value_desc("filename"));
+static cl::opt<bool> SaveTemps("save-temps", cl::desc("Save temp files"),
+ cl::init(false));
+
namespace {
struct TempFile {
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;
}