<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">So, I decided to try and start small. My idea here was create a ToolsSupport library, and move one small, but important function into the new library to shake out all the places that would need updating. The function I chose to start with was llvm::sys::PrintStackTraceOnErrorSignal.<div class=""><br class=""></div><div class="">Turns out this wasn’t so small. These patches aren’t done yet, but since they’re pretty big I thought I’d send them out for preliminary feedback about whether or not this is the right approach. The patches contain the following changes:</div><div class=""><br class=""></div><div class="">* Patches to LLVM & Clang CMake build systems to add a new libLLVMToolsSupport</div><div class="">* New SignalHandlers.h/.cpp/.inc files for PrintStackTraceOnErrorSignal</div><div class="">* Updated all llvm tools to pull in the new library and use the new header</div><div class=""><br class=""></div><div class="">Still missing:</div><div class=""><br class=""></div><div class="">* Windows side of the SignalHandlers patches</div><div class="">* Autoconf/Make side of the build system patches</div><div class="">* Patches for other LLVM projects</div><div class="">* General cleanup</div><div class=""><br class=""></div><div class="">Feedback is greatly appreciated. I’d really like to make sure I’m not lost in the weeds on this one.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">-Chris</div><div class=""><br class=""></div><div class=""></div></body></html>