Skip to content

Commit bc9c6c0

Browse files
committed
[clang][Interp][NFC] Remove ByteCodeGenError
Unused.
1 parent de92615 commit bc9c6c0

File tree

9 files changed

+0
-80
lines changed

9 files changed

+0
-80
lines changed

clang/lib/AST/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ add_clang_library(clangAST
6666
InheritViz.cpp
6767
Interp/ByteCodeEmitter.cpp
6868
Interp/ByteCodeExprGen.cpp
69-
Interp/ByteCodeGenError.cpp
7069
Interp/ByteCodeStmtGen.cpp
7170
Interp/Context.cpp
7271
Interp/Descriptor.cpp

clang/lib/AST/Interp/ByteCodeEmitter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "ByteCodeEmitter.h"
10-
#include "ByteCodeGenError.h"
1110
#include "Context.h"
1211
#include "Floating.h"
1312
#include "IntegralAP.h"

clang/lib/AST/Interp/ByteCodeExprGen.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include "ByteCodeExprGen.h"
1010
#include "ByteCodeEmitter.h"
11-
#include "ByteCodeGenError.h"
1211
#include "ByteCodeStmtGen.h"
1312
#include "Context.h"
1413
#include "Floating.h"

clang/lib/AST/Interp/ByteCodeGenError.cpp

Lines changed: 0 additions & 14 deletions
This file was deleted.

clang/lib/AST/Interp/ByteCodeGenError.h

Lines changed: 0 additions & 46 deletions
This file was deleted.

clang/lib/AST/Interp/ByteCodeStmtGen.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include "ByteCodeStmtGen.h"
1010
#include "ByteCodeEmitter.h"
11-
#include "ByteCodeGenError.h"
1211
#include "Context.h"
1312
#include "Function.h"
1413
#include "PrimType.h"

clang/lib/AST/Interp/Context.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "Context.h"
1010
#include "ByteCodeEmitter.h"
1111
#include "ByteCodeExprGen.h"
12-
#include "ByteCodeGenError.h"
1312
#include "ByteCodeStmtGen.h"
1413
#include "EvalEmitter.h"
1514
#include "Interp.h"
@@ -208,17 +207,6 @@ bool Context::Run(State &Parent, const Function *Func, APValue &Result) {
208207
return false;
209208
}
210209

211-
bool Context::Check(State &Parent, llvm::Expected<bool> &&Flag) {
212-
if (Flag)
213-
return *Flag;
214-
handleAllErrors(Flag.takeError(), [&Parent](ByteCodeGenError &Err) {
215-
Parent.FFDiag(Err.getRange().getBegin(),
216-
diag::err_experimental_clang_interp_failed)
217-
<< Err.getRange();
218-
});
219-
return false;
220-
}
221-
222210
// TODO: Virtual bases?
223211
const CXXMethodDecl *
224212
Context::getOverridingFunction(const CXXRecordDecl *DynamicDecl,

clang/lib/AST/Interp/Context.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,6 @@ class Context final {
108108
/// Runs a function.
109109
bool Run(State &Parent, const Function *Func, APValue &Result);
110110

111-
/// Checks a result from the interpreter.
112-
bool Check(State &Parent, llvm::Expected<bool> &&R);
113-
114111
/// Current compilation context.
115112
ASTContext &Ctx;
116113
/// Interpreter stack, shared across invocations.

clang/lib/AST/Interp/EvalEmitter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "EvalEmitter.h"
10-
#include "ByteCodeGenError.h"
1110
#include "Context.h"
1211
#include "IntegralAP.h"
1312
#include "Interp.h"

0 commit comments

Comments
 (0)