Add a new watchdog timer interface. The interface does not permit handling timeouts, so
authorNick Lewycky <nicholas@mxc.ca>
Tue, 26 Mar 2013 01:27:52 +0000 (01:27 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 26 Mar 2013 01:27:52 +0000 (01:27 +0000)
commitd5e1be03eda2e8036f136fdf12a5f5d9e1e684d8
tree15d39954fc3335a5db0e76df41dd884402acba88
parentbd3148b2857139e8737945f5df1a1ea1f4aff3b9
Add a new watchdog timer interface. The interface does not permit handling timeouts, so
it's only really useful if you're going to crash anyways. Use it in the pretty stack trace
printer to kill the compiler if we hang while printing the stack trace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177962 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Watchdog.h [new file with mode: 0644]
lib/Support/CMakeLists.txt
lib/Support/PrettyStackTrace.cpp
lib/Support/Unix/Watchdog.inc [new file with mode: 0644]
lib/Support/Watchdog.cpp [new file with mode: 0644]
lib/Support/Windows/Watchdog.inc [new file with mode: 0644]