Skip to content

Commit f4aabc2

Browse files
committed
[clang][Interp][NFC] Clean up EvalEmitter includes
1 parent c97c28d commit f4aabc2

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

clang/lib/AST/Interp/EvalEmitter.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,15 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "EvalEmitter.h"
10+
#include "ByteCodeGenError.h"
1011
#include "Context.h"
1112
#include "Interp.h"
1213
#include "Opcode.h"
13-
#include "Program.h"
1414
#include "clang/AST/DeclCXX.h"
1515

1616
using namespace clang;
1717
using namespace clang::interp;
1818

19-
using APSInt = llvm::APSInt;
20-
template <typename T> using Expected = llvm::Expected<T>;
21-
2219
EvalEmitter::EvalEmitter(Context &Ctx, Program &P, State &Parent,
2320
InterpStack &Stk, APValue &Result)
2421
: Ctx(Ctx), P(P), S(Parent, P, Stk, Ctx, this), Result(Result) {

clang/lib/AST/Interp/EvalEmitter.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,17 @@
1313
#ifndef LLVM_CLANG_AST_INTERP_EVALEMITTER_H
1414
#define LLVM_CLANG_AST_INTERP_EVALEMITTER_H
1515

16-
#include "ByteCodeGenError.h"
17-
#include "Context.h"
18-
#include "InterpStack.h"
1916
#include "InterpState.h"
2017
#include "PrimType.h"
21-
#include "Program.h"
2218
#include "Source.h"
2319
#include "llvm/Support/Error.h"
2420

2521
namespace clang {
2622
namespace interp {
2723
class Context;
2824
class Function;
29-
class InterpState;
25+
class InterpStack;
3026
class Program;
31-
class SourceInfo;
3227
enum Opcode : uint32_t;
3328

3429
/// An emitter which evaluates opcodes as they are emitted.

0 commit comments

Comments
 (0)