if (filename != "") {
disassembler.reset(new LLVMDisassembler(filename));
disassembler->forEachFunction([&](uint64_t address, Function* fun) {
- populateSymbolInformation(fun->getName());
+ populateSymbolInformation(fun);
});
// curBin = new Binary(fileName.toStdString());
}
}
-void Mainwindow::populateSymbolInformation(const std::string& sym) {
+void Mainwindow::populateSymbolInformation(Function* fun) {
QTabWidget * w = new QTabWidget();
// Listing
QGraphicsView * view = new QGraphicsView(scene);
w->addTab(view, "CFG");
- listWidget->addItem(sym.c_str());
+ listWidget->addItem(fun->getName().c_str());
stackedWidget->addWidget(w);
}
private:
void openBinary(const std::string& filename);
- void populateSymbolInformation(const std::string& sym);
+ void populateSymbolInformation(Function * fun);
QTextEdit *textEdit;
QPushButton *quitButton;