Skip to content

Commit 046549f

Browse files
committed
Fix CI
1 parent a646940 commit 046549f

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

clang/include/clang/Interpreter/Interpreter.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,9 @@ class Interpreter {
170170
llvm::Expected<llvm::orc::ExecutorAddr>
171171
getSymbolAddressFromLinkerName(llvm::StringRef LinkerName) const;
172172

173-
std::unique_ptr<llvm::Module> GenModule(IncrementalAction *Action = nullptr);
174-
PartialTranslationUnit &RegisterPTU(TranslationUnitDecl *TU,
175-
std::unique_ptr<llvm::Module> M = {},
176-
IncrementalAction *Action = nullptr);
177-
178173
private:
179174
size_t getEffectivePTUSize() const;
180175
void markUserCodeStart();
181-
llvm::Expected<Expr *> ExtractValueFromExpr(Expr *E);
182176

183177
// A cache for the compiled destructors used to for de-allocation of managed
184178
// clang::Values.
@@ -201,11 +195,6 @@ class Interpreter {
201195
// This function forces emission of the needed dtor.
202196
llvm::Expected<llvm::orc::ExecutorAddr>
203197
CompileDtorCall(CXXRecordDecl *CXXRD) const;
204-
205-
/// @}
206-
/// @name Code generation
207-
/// @{
208-
CodeGenerator *getCodeGen(IncrementalAction *Action = nullptr) const;
209198
};
210199
} // namespace clang
211200

clang/lib/Interpreter/IncrementalAction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ bool InProcessPrintingASTConsumer::HandleTopLevelDecl(DeclGroupRef DGR) {
137137
if (auto *TLSD = llvm::dyn_cast<TopLevelStmtDecl>(D))
138138
if (TLSD && TLSD->isSemiMissing()) {
139139
auto ExprOrErr =
140-
Interp.ExtractValueFromExpr(cast<Expr>(TLSD->getStmt()));
140+
Interp.convertExprToValue(cast<Expr>(TLSD->getStmt()));
141141
if (llvm::Error E = ExprOrErr.takeError()) {
142142
llvm::logAllUnhandledErrors(std::move(E), llvm::errs(),
143143
"Value printing failed: ");

0 commit comments

Comments
 (0)