[clang] f4aabc2 - [clang][Interp][NFC] Clean up EvalEmitter includes
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 24 01:24:41 PDT 2023
Author: Timm Bäder
Date: 2023-09-24T10:22:34+02:00
New Revision: f4aabc2d9d559decc7a8e0fcfb88e657194595e4
URL: https://github.com/llvm/llvm-project/commit/f4aabc2d9d559decc7a8e0fcfb88e657194595e4
DIFF: https://github.com/llvm/llvm-project/commit/f4aabc2d9d559decc7a8e0fcfb88e657194595e4.diff
LOG: [clang][Interp][NFC] Clean up EvalEmitter includes
Added:
Modified:
clang/lib/AST/Interp/EvalEmitter.cpp
clang/lib/AST/Interp/EvalEmitter.h
Removed:
################################################################################
diff --git a/clang/lib/AST/Interp/EvalEmitter.cpp b/clang/lib/AST/Interp/EvalEmitter.cpp
index d26ee8e40a437b9..bdf800c60f1723f 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 <typename T> using Expected = llvm::Expected<T>;
-
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 1f392a13b3ccf73..c63e46bbf347bdf 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.
More information about the cfe-commits
mailing list