blob: 5e8838c0061829d1832cede6bed70979e12ae780 [file] [log] [blame]
#include "TVTreeItem.h"
#include "llvm/Module.h"
using namespace llvm;
static TVTreeRootItem* theInstance = 0;
TVTreeRootItem* TVTreeRootItem::instance() {
if (theInstance == 0) {
theInstance = new TVTreeRootItem("Snapshot Root");
}
return theInstance;
}
void TVTreeModuleItem::print(std::ostream &os) {
myModule->print(os);
}
void TVTreeFunctionItem::print(std::ostream &os) {
myFunc->print(os);
}
std::string TVTreeFunctionItem::getTitle () {
return myFunc->getName () + "()";
}