Remove AST inclusion from Basic include
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 12 May 2021 17:51:21 +0000 (19:51 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 12 May 2021 17:51:21 +0000 (19:51 +0200)
That's a cyclic dependency. NFC.

clang/include/clang/Basic/Thunk.h

index 7f3c4b2..91088be 100644 (file)
 #ifndef LLVM_CLANG_BASIC_THUNK_H
 #define LLVM_CLANG_BASIC_THUNK_H
 
-#include "clang/AST/GlobalDecl.h"
+#include <cstdint>
+#include <cstring>
 
 namespace clang {
 
+class CXXMethodDecl;
+
 /// A return adjustment.
 struct ReturnAdjustment {
   /// The non-virtual adjustment from the derived object to its