Reduce cling's runtime overhead.
This commit is contained in:
parent
b563268f19
commit
d03ba0fb9f
@ -14,13 +14,5 @@ namespace llvm {
|
||||
class raw_ostream;
|
||||
}
|
||||
|
||||
namespace cling {
|
||||
class Value;
|
||||
|
||||
namespace valuePrinterInternal {
|
||||
void printValue_Default(llvm::raw_ostream& o, const Value& V);
|
||||
void printType_Default(llvm::raw_ostream& o, const Value& V);
|
||||
} // end namespace valuePrinterInternal
|
||||
}
|
||||
|
||||
#endif // CLING_VALUEPRINTER_H
|
||||
|
@ -277,8 +277,6 @@ namespace cling {
|
||||
<< (uintptr_t)this << ";} }";
|
||||
declare(initializer.str());
|
||||
}
|
||||
|
||||
declare("#include \"cling/Interpreter/ValuePrinter.h\"");
|
||||
}
|
||||
|
||||
void Interpreter::IncludeCRuntime() {
|
||||
|
@ -309,6 +309,11 @@ namespace cling {
|
||||
return OR == OR_Success;
|
||||
}
|
||||
|
||||
namespace valuePrinterInternal {
|
||||
void printValue_Default(llvm::raw_ostream& o, const Value& V);
|
||||
void printType_Default(llvm::raw_ostream& o, const Value& V);
|
||||
} // end namespace valuePrinterInternal
|
||||
|
||||
void Value::print(llvm::raw_ostream& Out) const {
|
||||
// Try to find user defined printing functions:
|
||||
// cling::printType(const void* const p, TY* const u, const Value& V) and
|
||||
|
Loading…
Reference in New Issue
Block a user