File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed
include/clang/Interpreter Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff 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-
178173private:
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
Original file line number Diff line number Diff 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: " );
You can’t perform that action at this time.
0 commit comments