diff --git a/clang/lib/AST/Interp/EvalEmitter.cpp b/clang/lib/AST/Interp/EvalEmitter.cpp index d26ee8e40a437..bdf800c60f172 100644 --- a/clang/lib/AST/Interp/EvalEmitter.cpp +++ b/clang/lib/AST/Interp/EvalEmitter.cpp @@ -7,18 +7,15 @@ //===----------------------------------------------------------------------===// #include "EvalEmitter.h" +#include "ByteCodeGenError.h" #include "Context.h" #include "Interp.h" #include "Opcode.h" -#include "Program.h" #include "clang/AST/DeclCXX.h" using namespace clang; using namespace clang::interp; -using APSInt = llvm::APSInt; -template using Expected = llvm::Expected; - EvalEmitter::EvalEmitter(Context &Ctx, Program &P, State &Parent, InterpStack &Stk, APValue &Result) : Ctx(Ctx), P(P), S(Parent, P, Stk, Ctx, this), Result(Result) { diff --git a/clang/lib/AST/Interp/EvalEmitter.h b/clang/lib/AST/Interp/EvalEmitter.h index 1f392a13b3ccf..c63e46bbf347b 100644 --- a/clang/lib/AST/Interp/EvalEmitter.h +++ b/clang/lib/AST/Interp/EvalEmitter.h @@ -13,12 +13,8 @@ #ifndef LLVM_CLANG_AST_INTERP_EVALEMITTER_H #define LLVM_CLANG_AST_INTERP_EVALEMITTER_H -#include "ByteCodeGenError.h" -#include "Context.h" -#include "InterpStack.h" #include "InterpState.h" #include "PrimType.h" -#include "Program.h" #include "Source.h" #include "llvm/Support/Error.h" @@ -26,9 +22,8 @@ namespace clang { namespace interp { class Context; class Function; -class InterpState; +class InterpStack; class Program; -class SourceInfo; enum Opcode : uint32_t; /// An emitter which evaluates opcodes as they are emitted.