Skip to content

Commit a7fdbec

Browse files
committed
[clang][Interp][NFC] Clean up Context includes
1 parent f4aabc2 commit a7fdbec

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

clang/lib/AST/Interp/ByteCodeEmitter.cpp

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

99
#include "ByteCodeEmitter.h"
10+
#include "ByteCodeGenError.h"
1011
#include "Context.h"
1112
#include "Floating.h"
1213
#include "Opcode.h"
@@ -18,9 +19,6 @@
1819
using namespace clang;
1920
using namespace clang::interp;
2021

21-
using APSInt = llvm::APSInt;
22-
using Error = llvm::Error;
23-
2422
Expected<Function *>
2523
ByteCodeEmitter::compileFunc(const FunctionDecl *FuncDecl) {
2624
// Set up argument indices.

clang/lib/AST/Interp/ByteCodeEmitter.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,14 @@
1313
#ifndef LLVM_CLANG_AST_INTERP_LINKEMITTER_H
1414
#define LLVM_CLANG_AST_INTERP_LINKEMITTER_H
1515

16-
#include "ByteCodeGenError.h"
1716
#include "Context.h"
18-
#include "InterpStack.h"
19-
#include "InterpState.h"
2017
#include "PrimType.h"
2118
#include "Program.h"
2219
#include "Source.h"
2320
#include "llvm/Support/Error.h"
2421

2522
namespace clang {
2623
namespace interp {
27-
class Context;
28-
class SourceInfo;
2924
enum Opcode : uint32_t;
3025

3126
/// An emitter which links the program to bytecode for later use.

clang/lib/AST/Interp/Context.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "Context.h"
1010
#include "ByteCodeEmitter.h"
1111
#include "ByteCodeExprGen.h"
12+
#include "ByteCodeGenError.h"
1213
#include "ByteCodeStmtGen.h"
1314
#include "EvalEmitter.h"
1415
#include "Interp.h"

clang/lib/AST/Interp/Context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
#define LLVM_CLANG_AST_INTERP_CONTEXT_H
1818

1919
#include "InterpStack.h"
20-
#include "clang/AST/APValue.h"
2120

2221
namespace clang {
2322
class ASTContext;
2423
class LangOptions;
2524
class FunctionDecl;
2625
class VarDecl;
26+
class APValue;
2727

2828
namespace interp {
2929
class Function;

0 commit comments

Comments
 (0)