changes to make it compatible with 64bit gcc


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2791 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Support/Signals.cpp b/lib/Support/Signals.cpp
index 8aa1b60..29daedf 100644
--- a/lib/Support/Signals.cpp
+++ b/lib/Support/Signals.cpp
@@ -11,8 +11,9 @@
 #include <cstdlib>
 #include <cstdio>
 #include <signal.h>
+using std::string;
 
-static vector<string> FilesToRemove;
+static std::vector<string> FilesToRemove;
 
 // IntSigs - Signals that may interrupt the program at any time.
 static const int IntSigs[] = {
@@ -36,7 +37,7 @@
     FilesToRemove.pop_back();
   }
 
-  if (find(IntSigs, IntSigsEnd, Sig) != IntSigsEnd)
+  if (std::find(IntSigs, IntSigsEnd, Sig) != IntSigsEnd)
     exit(1);   // If this is an interrupt signal, exit the program
 
   // Otherwise if it is a fault (like SEGV) reissue the signal to die...
@@ -48,6 +49,6 @@
 void RemoveFileOnSignal(const string &Filename) {
   FilesToRemove.push_back(Filename);
 
-  for_each(IntSigs, IntSigsEnd, RegisterHandler);
-  for_each(KillSigs, KillSigsEnd, RegisterHandler);
+  std::for_each(IntSigs, IntSigsEnd, RegisterHandler);
+  std::for_each(KillSigs, KillSigsEnd, RegisterHandler);
 }