summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-03-05 17:47:52 +0000
committerZachary Turner <zturner@google.com>2015-03-05 17:47:52 +0000
commit62b7b617a8e5ebdfb088988ea57c29833ac9c956 (patch)
treedaf41abe7ed6836b90e9c9e07dc7d257ded056f0 /llvm/lib/CodeGen/SelectionDAG
parente4b9213f80fe52a335e80a1e9f7673e1fec7072c (diff)
downloadbcm5719-llvm-62b7b617a8e5ebdfb088988ea57c29833ac9c956.tar.gz
bcm5719-llvm-62b7b617a8e5ebdfb088988ea57c29833ac9c956.zip
[Windows] Implement PrintStackTrace(FILE*)
llvm::sys::PrintBacktrace(FILE*) is supposed to print a backtrace of the current thread given the current PC. This function was unimplemented on Windows, and instead the only time we could print a backtrace was as the result of an exception through LLVMUnhandledExceptionFilter. This patch implements backtracing of self by using RtlCaptureContext to get a CONTEXT for the current thread, and moving the printing and StackWalk64 code to a common method that printing own stack trace and printing stack trace of an exception can use. Differential Revision: http://reviews.llvm.org/D8068 Reviewed by: Reid Kleckner llvm-svn: 231382
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud