Reduce cling's runtime overhead.

This commit is contained in:
Vassil Vassilev 2014-05-21 17:09:04 +02:00 committed by sftnight
parent b563268f19
commit d03ba0fb9f
3 changed files with 5 additions and 10 deletions

View File

@ -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

View File

@ -277,8 +277,6 @@ namespace cling {
<< (uintptr_t)this << ";} }";
declare(initializer.str());
}
declare("#include \"cling/Interpreter/ValuePrinter.h\"");
}
void Interpreter::IncludeCRuntime() {

View File

@ -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