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