void symbol_requester() { const char* const argv[] = {"libcling__symbol_requester", 0}; Interpreter I(1, argv); //cling_PrintValue(0); LookupHelper h(0,0); 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(); }
void symbol_requester() { const char* const argv[] = {"libcling__symbol_requester", 0}; Interpreter I(1, argv); ValuePrinterInfo VPI(0, 0); // asserts, but we don't call. valuePrinterInternal::printValue_Default(0, VPI); cling_PrintValue(0, 0, 0); valuePrinterInternal::flushToStream(llvm::outs(), ""); LookupHelper h(0,0); h.findType(""); h.findScope(""); h.findFunctionProto(0, "", ""); h.findFunctionArgs(0, "", ""); runtime::internal::DynamicExprInfo DEI(0,0,false); DEI.getExpr(); InterpreterCallbacks cb(0); }
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); 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(); }