std::map<std::string, SectionRef> readSections(const ObjectFile& o) {
error_code ec;
std::map<std::string, SectionRef> result;
std::map<std::string, SectionRef> readSections(const ObjectFile& o) {
error_code ec;
std::map<std::string, SectionRef> result;
std::map<std::string, SymbolRef> readSymbols(const ObjectFile& o) {
error_code ec;
std::map<std::string, SymbolRef> result;
std::map<std::string, SymbolRef> readSymbols(const ObjectFile& o) {
error_code ec;
std::map<std::string, SymbolRef> result;
- symbol_iterator si(o.begin_symbols()), se(o.end_symbols());
- for (; si != se; si.increment(ec)) {
+ symbol_iterator si(o.symbol_begin()), se(o.symbol_end());
+ for (; si != se; ++si) {
- createBinary(filename, binary);
- if (Archive *a = dyn_cast<Archive>(binary.get())) {
+ binary = createBinary(filename).get();
+ if (Archive *a = dyn_cast<Archive>(binary)) {
// Make a list of all the symbols in this section.
std::vector<std::pair<uint64_t, StringRef> > Symbols;
// Make a list of all the symbols in this section.
std::vector<std::pair<uint64_t, StringRef> > Symbols;