Skip to content

Commit 18afba5

Browse files
delete commented code
1 parent 3b87d3a commit 18afba5

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

lib/CppInterOp/CppInterOp.cpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -261,30 +261,6 @@ static InterpreterInfo& getInterpInfo(compat::Interpreter* I) {
261261
llvm_unreachable("Invalid State");
262262
}
263263

264-
// static compat::Interpreter& getInterp(const clang::Decl* D) {
265-
// std::lock_guard<std::mutex> Lock(InterpreterStackLock);
266-
// if (!D)
267-
// return *getInterpInfo(NULLPTR).Interpreter;
268-
// if (sInterpreters->size() == 1)
269-
// return *sInterpreters->back()->Interpreter;
270-
// return *(*sInterpreterASTMap)[&D->getASTContext()]->Interpreter;
271-
// }
272-
// static compat::Interpreter& getInterp(const void* D) {
273-
// return *getInterpInfo(D).Interpreter;
274-
// }
275-
276-
// static clang::Sema& getSema(const clang::Decl* D) {
277-
// return getInterpInfo(D).Interpreter->getSema();
278-
// }
279-
// static clang::Sema& getSema(const void* D) { return getInterp(D).getSema(); }
280-
281-
// static clang::ASTContext& getASTContext(const clang::Decl* D) {
282-
// return getSema(D).getASTContext();
283-
// }
284-
// static clang::ASTContext& getASTContext(const void* D) {
285-
// return getSema(D).getASTContext();
286-
// }
287-
288264
int Declare(compat::Interpreter& I, const char* code, bool silent);
289265
static TCppType_t GetTypeFromScope(clang::Decl* D, compat::Interpreter& I);
290266
static TCppIndex_t GetNumBases(compat::Interpreter& I, clang::CXXRecordDecl* D);

0 commit comments

Comments
 (0)