/// Parse the symbols from the module and model-level ASM and add them to
/// either the defined or undefined lists.
- bool parseSymbols(std::string &errMsg);
+ void parseSymbols();
/// Add a symbol which isn't defined just yet to a list to be resolved later.
void addPotentialUndefinedSymbol(const object::BasicSymbolRef &Sym,
else
Ret = new LTOModule(std::move(IRObj), target);
- if (Ret->parseSymbols(errMsg)) {
- delete Ret;
- return nullptr;
- }
-
+ Ret->parseSymbols();
Ret->parseMetadata();
return Ret;
info.symbol = decl;
}
-/// parseSymbols - Parse the symbols from the module and model-level ASM and add
-/// them to either the defined or undefined lists.
-bool LTOModule::parseSymbols(std::string &errMsg) {
+void LTOModule::parseSymbols() {
for (auto &Sym : IRFile->symbols()) {
const GlobalValue *GV = IRFile->getSymbolGV(Sym.getRawDataRefImpl());
uint32_t Flags = Sym.getFlags();
NameAndAttributes info = u->getValue();
_symbols.push_back(info);
}
-
- return false;
}
/// parseMetadata - Parse metadata from the module