diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-05 08:00:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-05 08:00:35 +0000 |
commit | 49f28ca787d8db7cac3c8898334f70ea55374c98 (patch) | |
tree | 6093fe1c30110dd1cf1adb4094a8fefa7f684675 /lib/Parse/MinimalAction.cpp | |
parent | 3f21f6c41cdc01285dc7ba88f8ab9490604039f7 (diff) |
rename PrettyStackTraceDecl -> PrettyStackTraceActionsDecl.
Introduce a new PrettyStackTraceDecl.
Use it to add the top level LLVM IR generation stuff in
Backend.cpp to stack traces. We now get crashes like:
Stack dump:
0. Program arguments: clang t.c -emit-llvm
1. <eof> parser at end of file
2. t.c:1:5: LLVM IR generation of declaration 'a'
Abort
for IR generation crashes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66153 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/MinimalAction.cpp')
-rw-r--r-- | lib/Parse/MinimalAction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/MinimalAction.cpp b/lib/Parse/MinimalAction.cpp index 3b8694c5d7..41ad36c83e 100644 --- a/lib/Parse/MinimalAction.cpp +++ b/lib/Parse/MinimalAction.cpp @@ -42,7 +42,7 @@ Action::DeclTy *Action::ActOnUsingDirective(Scope *CurScope, } -void PrettyStackTraceDecl::print(llvm::raw_ostream &OS) const { +void PrettyStackTraceActionsDecl::print(llvm::raw_ostream &OS) const { if (Loc.isValid()) { Loc.print(OS, SM); OS << ": "; |