Simplify ObjectFile::GetUUID

instead of returning the UUID through by-ref argument and a boolean
value indicating success, we can just return it directly. Since the UUID
class already has an invalid state, it can be used to denote the failure
without the additional bool.

llvm-svn: 353714
This commit is contained in:
Pavel Labath
2019-02-11 16:14:02 +00:00
parent 5caa550649
commit bd334efd0a
13 changed files with 55 additions and 71 deletions

View File

@@ -122,11 +122,6 @@ Symtab *ObjectFileBreakpad::GetSymtab() {
return nullptr;
}
bool ObjectFileBreakpad::GetUUID(UUID *uuid) {
*uuid = m_uuid;
return true;
}
void ObjectFileBreakpad::CreateSections(SectionList &unified_section_list) {
if (m_sections_ap)
return;