From bb143fbd2fcb469f744db9a4c9b52591acc218d2 Mon Sep 17 00:00:00 2001 From: Axel Naumann Date: Wed, 19 May 2021 12:07:32 +0200 Subject: [PATCH] Remove symbols explicitly exported through CLING_EXPORT. --- lib/Interpreter/RequiredSymbols.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/lib/Interpreter/RequiredSymbols.cpp b/lib/Interpreter/RequiredSymbols.cpp index c43cfa74..6cf110da 100644 --- a/lib/Interpreter/RequiredSymbols.cpp +++ b/lib/Interpreter/RequiredSymbols.cpp @@ -15,31 +15,18 @@ #include "cling/Utils/Output.h" #include "clang/AST/Type.h" -extern "C" -void* cling_runtime_internal_throwIfInvalidPointer(void* Sema, void* Expr, - const void* Arg); - namespace cling { namespace internal { void symbol_requester() { const char* const argv[] = {"libcling__symbol_requester", 0}; Interpreter I(1, argv); - //cling_PrintValue(0); - // sharedPtr is needed for SLC6 with devtoolset2: - // Redhat re-uses libstdc++ from GCC 4.4 and patches missing symbols into - // the binary through an archive. We need to pull more symbols from the - // archive to make them available to cling. This list will possibly need to - // grow... - std::shared_ptr sp; - Interpreter* SLC6DevToolSet = (Interpreter*)(void*)&sp; - LookupHelper h(0,SLC6DevToolSet); + LookupHelper h(0, &I); h.findType("", LookupHelper::NoDiagnostics); h.findScope("", LookupHelper::NoDiagnostics); h.findFunctionProto(0, "", "", LookupHelper::NoDiagnostics); h.findFunctionArgs(0, "", "", LookupHelper::NoDiagnostics); runtime::internal::DynamicExprInfo DEI(0,0,false); DEI.getExpr(); - cling_runtime_internal_throwIfInvalidPointer(nullptr, nullptr, nullptr); } } }