diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-08 19:13:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-08 19:13:45 +0000 |
commit | bb1ba7b7d36e69fff74a7aae8182ca7c32ed14bc (patch) | |
tree | 78220ed2e2294f36ec15209a0a92bcb8e97022dd /llvm/lib/System/Unix | |
parent | d2bb2dfa57ab04056f8aec638b46eb59f4aebd4f (diff) | |
download | bcm5719-llvm-bb1ba7b7d36e69fff74a7aae8182ca7c32ed14bc.tar.gz bcm5719-llvm-bb1ba7b7d36e69fff74a7aae8182ca7c32ed14bc.zip |
add some explicit llvm:: qualifiers to the unix side, fix problems on the windows side.
llvm-svn: 66386
Diffstat (limited to 'llvm/lib/System/Unix')
-rw-r--r-- | llvm/lib/System/Unix/Signals.inc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/System/Unix/Signals.inc b/llvm/lib/System/Unix/Signals.inc index 94f6b6c4a39..e031e85b425 100644 --- a/llvm/lib/System/Unix/Signals.inc +++ b/llvm/lib/System/Unix/Signals.inc @@ -101,13 +101,14 @@ static void RegisterHandler(int Signal) { } -void sys::SetInterruptFunction(void (*IF)()) { +void llvm::sys::SetInterruptFunction(void (*IF)()) { InterruptFunction = IF; RegisterHandler(SIGINT); } // RemoveFileOnSignal - The public API -bool sys::RemoveFileOnSignal(const sys::Path &Filename, std::string* ErrMsg) { +bool llvm::sys::RemoveFileOnSignal(const sys::Path &Filename, + std::string* ErrMsg) { if (FilesToRemove == 0) FilesToRemove = new std::vector<sys::Path>(); @@ -121,7 +122,7 @@ bool sys::RemoveFileOnSignal(const sys::Path &Filename, std::string* ErrMsg) { /// AddSignalHandler - Add a function to be called when a signal is delivered /// to the process. The handler can have a cookie passed to it to identify /// what instance of the handler it is. -void sys::AddSignalHandler(void (*FnPtr)(void *), void *Cookie) { +void llvm::sys::AddSignalHandler(void (*FnPtr)(void *), void *Cookie) { if (CallBacksToRun == 0) CallBacksToRun = new std::vector<std::pair<void(*)(void*), void*> >(); CallBacksToRun->push_back(std::make_pair(FnPtr, Cookie)); @@ -187,7 +188,7 @@ static void PrintStackTrace(void *) { /// PrintStackTraceOnErrorSignal - When an error signal (such as SIBABRT or /// SIGSEGV) is delivered to the process, print a stack trace and then exit. -void sys::PrintStackTraceOnErrorSignal() { +void llvm::sys::PrintStackTraceOnErrorSignal() { AddSignalHandler(PrintStackTrace, 0); } |