Forget about ValuePrinterInfo.
This commit is contained in:
parent
711e39e092
commit
58b76265fa
@ -21,7 +21,7 @@ CLINGDEP := $(CLINGO:.o=.d)
|
||||
CLINGETC_CLING := DynamicExprInfo.h DynamicLookupRuntimeUniverse.h \
|
||||
DynamicLookupLifetimeHandler.h Interpreter.h InvocationOptions.h \
|
||||
RuntimeUniverse.h Value.h \
|
||||
ValuePrinter.h ValuePrinterInfo.h RuntimeException.h
|
||||
ValuePrinter.h RuntimeException.h
|
||||
|
||||
CLINGETC_LLVM := llvm/ADT/IntrusiveRefCntPtr.h \
|
||||
llvm/ADT/OwningPtr.h \
|
||||
|
@ -42,7 +42,6 @@ add_cling_library(clingInterpreter
|
||||
TransactionUnloader.cpp
|
||||
Value.cpp
|
||||
ValuePrinter.cpp
|
||||
ValuePrinterInfo.cpp
|
||||
ValuePrinterSynthesizer.cpp
|
||||
|
||||
LINK_LIBS
|
||||
|
@ -12,8 +12,6 @@
|
||||
#include "cling/Interpreter/DynamicExprInfo.h"
|
||||
#include "cling/Interpreter/InterpreterCallbacks.h"
|
||||
#include "cling/Interpreter/LookupHelper.h"
|
||||
//#include "cling/Interpreter/ValuePrinter.h"
|
||||
//#include "cling/Interpreter/ValuePrinterInfo.h"
|
||||
|
||||
#include "clang/AST/Type.h"
|
||||
|
||||
@ -24,10 +22,7 @@ namespace internal {
|
||||
void symbol_requester() {
|
||||
const char* const argv[] = {"libcling__symbol_requester", 0};
|
||||
Interpreter I(1, argv);
|
||||
//Value V; // asserts, but we don't call.
|
||||
//valuePrinterInternal::printValue_Default(0, V);
|
||||
//cling_PrintValue(0);
|
||||
//valuePrinterInternal::flushToStream(llvm::outs(), "");
|
||||
LookupHelper h(0,0);
|
||||
h.findType("", LookupHelper::NoDiagnostics);
|
||||
h.findScope("", LookupHelper::NoDiagnostics);
|
||||
|
@ -296,7 +296,7 @@ void* Value::GetDtorWrapperPtr(const clang::RecordDecl* RD) const {
|
||||
for (UnresolvedSetImpl::const_iterator I = unresolved.begin(),
|
||||
E = unresolved.end(); I < E; ++I) {
|
||||
if (FunctionDecl* FD = dyn_cast<FunctionDecl>(*I))
|
||||
if (C.hasSameType(FD->getParamDecl(0)->getType(), ValueTy)) {
|
||||
if (C.hasSameUnqualifiedType(FD->getParamDecl(0)->getType(), ValueTy)){
|
||||
hasViablePrintTypeCandidate = true;
|
||||
break;
|
||||
}
|
||||
@ -365,7 +365,7 @@ void* Value::GetDtorWrapperPtr(const clang::RecordDecl* RD) const {
|
||||
for (UnresolvedSetImpl::const_iterator I = unresolved.begin(),
|
||||
E = unresolved.end(); I < E; ++I) {
|
||||
if (FunctionDecl* FD = dyn_cast<FunctionDecl>(*I))
|
||||
if (C.hasSameType(FD->getParamDecl(0)->getType(), ValueTy)) {
|
||||
if (C.hasSameUnqualifiedType(FD->getParamDecl(0)->getType(), ValueTy)){
|
||||
hasViablePrintValueCandidate = true;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user