diff options
author | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-06-25 20:55:50 +0000 |
---|---|---|
committer | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-06-25 20:55:50 +0000 |
commit | 458496c0603f922301898409417b717476cfbf10 (patch) | |
tree | df48267e6feafa3ea4ba9416c5c373f91ac1b6ff /llvm/lib/Support/Signals.cpp | |
parent | eaa2e7204e85b056751d26773ad636cffbfceacd (diff) | |
download | bcm5719-llvm-458496c0603f922301898409417b717476cfbf10.tar.gz bcm5719-llvm-458496c0603f922301898409417b717476cfbf10.zip |
changes to make it compatible with 64bit gcc
llvm-svn: 2791
Diffstat (limited to 'llvm/lib/Support/Signals.cpp')
-rw-r--r-- | llvm/lib/Support/Signals.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Support/Signals.cpp b/llvm/lib/Support/Signals.cpp index 8aa1b6047ab..29daedf0fb9 100644 --- a/llvm/lib/Support/Signals.cpp +++ b/llvm/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 @@ static void SignalHandler(int Sig) { 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 @@ static void RegisterHandler(int Signal) { signal(Signal, SignalHandler); } 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); } |