Sprinkle some PrettyStackEntry magic into the passmanager. With this, we now
authorChris Lattner <sabre@nondot.org>
Fri, 6 Mar 2009 06:45:05 +0000 (06:45 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 6 Mar 2009 06:45:05 +0000 (06:45 +0000)
commitd6f16587ab292b20857933b3ba13d3d1c62a8d62
treeae2e65b158a4171daa528a43330c965f65a24666
parent7157228a58fe0025488130548680cf645e14f068
Sprinkle some PrettyStackEntry magic into the passmanager.  With this, we now
get nice and happy stack traces when we crash in an optimizer or codegen.  For
example, an abort put in UnswitchLoops now looks like this:

Stack dump:
0. Program arguments: clang pr3399.c -S -O3
1. <eof> parser at end of file
2. per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module 'pr3399.c'.
4. Running pass 'Loop Pass Manager' on function '@foo'
5. Running pass 'Unswitch loops' on basic block '%for.inc'
Abort

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66260 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/PassManagers.h
lib/Analysis/LoopPass.cpp
lib/VMCore/PassManager.cpp