// SymbolRef accessors const char *LLVMGetSymbolName(LLVMSymbolIteratorRef SI) { Expected<StringRef> Ret = (*unwrap(SI))->getName(); if (!Ret) { std::string Buf; raw_string_ostream OS(Buf); logAllUnhandledErrors(Ret.takeError(), OS, ""); OS.flush(); report_fatal_error(Buf); } return Ret->data(); }