diff options
author | Jordan Rose <jordan_rose@apple.com> | 2018-03-23 00:07:18 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2018-03-23 00:07:18 +0000 |
commit | 1e879d8be6322f9f974db3dc7dc4279ea46b4645 (patch) | |
tree | 4d19017996100e775e6eda980bec9bf4101c384f /clang/lib/Parse/ParseDecl.cpp | |
parent | 37eeb32046d27f78d5ef52f02b81dfd295281fff (diff) | |
download | llvm-1e879d8be6322f9f974db3dc7dc4279ea46b4645.zip llvm-1e879d8be6322f9f974db3dc7dc4279ea46b4645.tar.gz llvm-1e879d8be6322f9f974db3dc7dc4279ea46b4645.tar.bz2 |
Sink PrettyDeclStackTrace down to the AST library
...and add some very basic stack trace entries for module building.
This would have helped track down rdar://problem/38434694 sooner.
llvm-svn: 328276
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index deefcaf..f19bcaa 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -15,6 +15,7 @@ #include "clang/Parse/RAIIObjectsForParser.h" #include "clang/AST/ASTContext.h" #include "clang/AST/DeclTemplate.h" +#include "clang/AST/PrettyDeclStackTrace.h" #include "clang/Basic/AddressSpaces.h" #include "clang/Basic/Attributes.h" #include "clang/Basic/CharInfo.h" @@ -22,7 +23,6 @@ #include "clang/Parse/ParseDiagnostic.h" #include "clang/Sema/Lookup.h" #include "clang/Sema/ParsedTemplate.h" -#include "clang/Sema/PrettyDeclStackTrace.h" #include "clang/Sema/Scope.h" #include "clang/Sema/SemaDiagnostic.h" #include "llvm/ADT/Optional.h" @@ -3908,7 +3908,7 @@ void Parser::ParseStructDeclaration( /// void Parser::ParseStructUnionBody(SourceLocation RecordLoc, unsigned TagType, Decl *TagDecl) { - PrettyDeclStackTraceEntry CrashInfo(Actions, TagDecl, RecordLoc, + PrettyDeclStackTraceEntry CrashInfo(Actions.Context, TagDecl, RecordLoc, "parsing struct/union body"); assert(!getLangOpts().CPlusPlus && "C++ declarations not supported"); |