Remove unnecessary variables.
[oota-llvm.git] / lib / Support / Windows / Signals.inc
index 2997199f1170e92a758afd89363dd1a77964a407..35ba6f8e1bba7542cf4c558c79bafab4b5a34dcb 100644 (file)
@@ -16,6 +16,9 @@
 #include <stdio.h>
 #include <vector>
 
+// The Windows.h header must be after LLVM and standard headers.
+#include "WindowsSupport.h"
+
 #ifdef __MINGW32__
  #include <imagehlp.h>
 #else
@@ -23,9 +26,6 @@
 #endif
 #include <psapi.h>
 
-// The Windows.h header must be the last one included.
-#include "Windows.h"
-
 #ifdef _MSC_VER
  #pragma comment(lib, "psapi.lib")
  #pragma comment(lib, "dbghelp.lib")
@@ -318,8 +318,7 @@ static void Cleanup() {
 
   if (FilesToRemove != NULL)
     while (!FilesToRemove->empty()) {
-      bool Existed;
-      llvm::sys::fs::remove(FilesToRemove->back(), Existed);
+      llvm::sys::fs::remove(FilesToRemove->back());
       FilesToRemove->pop_back();
     }