From 458496c0603f922301898409417b717476cfbf10 Mon Sep 17 00:00:00 2001 From: Anand Shukla Date: Tue, 25 Jun 2002 20:55:50 +0000 Subject: changes to make it compatible with 64bit gcc llvm-svn: 2791 --- llvm/lib/Support/Signals.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'llvm/lib/Support') 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 #include #include +using std::string; -static vector FilesToRemove; +static std::vector 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); } -- cgit v1.2.3