diff options
author | Reid Kleckner <rnk@google.com> | 2019-11-15 17:31:55 -0800 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2019-12-06 15:30:49 -0800 |
commit | 60573ae6fe509b618dc6a2c5c55d921bccd77608 (patch) | |
tree | 06d9a6c813edbcca65ed7e18c78edd26f97dc017 /clang/lib/AST/ExprConstant.cpp | |
parent | 6555995a6d4545ff59dcf3388f9acfce3b6129a5 (diff) | |
download | bcm5719-llvm-60573ae6fe509b618dc6a2c5c55d921bccd77608.tar.gz bcm5719-llvm-60573ae6fe509b618dc6a2c5c55d921bccd77608.zip |
Remove Expr.h include from ASTContext.h, NFC
ASTContext.h is popular, prune its includes. Expr.h brings in Attr.h,
which is also expensive.
Move BlockVarCopyInit to Expr.h to accomplish this.
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
-rw-r--r-- | clang/lib/AST/ExprConstant.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index 7a17b76f05d..3151ec044cb 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -32,8 +32,6 @@ // //===----------------------------------------------------------------------===// -#include <cstring> -#include <functional> #include "Interp/Context.h" #include "Interp/Frame.h" #include "Interp/State.h" @@ -41,6 +39,7 @@ #include "clang/AST/ASTContext.h" #include "clang/AST/ASTDiagnostic.h" #include "clang/AST/ASTLambda.h" +#include "clang/AST/Attr.h" #include "clang/AST/CXXInheritance.h" #include "clang/AST/CharUnits.h" #include "clang/AST/CurrentSourceLocExprScope.h" @@ -57,6 +56,8 @@ #include "llvm/ADT/SmallBitVector.h" #include "llvm/Support/SaveAndRestore.h" #include "llvm/Support/raw_ostream.h" +#include <cstring> +#include <functional> #define DEBUG_TYPE "exprconstant" |