diff options
Diffstat (limited to 'llvm/tools/as/as.cpp')
| -rw-r--r-- | llvm/tools/as/as.cpp | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/llvm/tools/as/as.cpp b/llvm/tools/as/as.cpp index 7bea711826e..3e8a9eaf31a 100644 --- a/llvm/tools/as/as.cpp +++ b/llvm/tools/as/as.cpp @@ -13,6 +13,7 @@  #include "llvm/Assembly/Parser.h"  #include "llvm/Bytecode/Writer.h"  #include "Support/CommandLine.h" +#include "Support/Signals.h"  #include <fstream>  #include <string>  #include <memory> @@ -70,6 +71,9 @@ int main(int argc, char **argv) {          }  	Out = new std::ofstream(OutputFilename.c_str()); +        // Make sure that the Out file gets unlink'd from the disk if we get a +        // SIGINT +        RemoveFileOnSignal(OutputFilename);        }      } | 

