Remove symbols explicitly exported through CLING_EXPORT.
This commit is contained in:
parent
07c6081059
commit
bb143fbd2f
@ -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<int> 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user