Fix windows buildbot where warnings are errors. We had a switch statement where all enumerations were handled, but some compilers don't recognize this. Simplify the logic so that all compilers will know a return value is returned in all cases.

llvm-svn: 286600
This commit is contained in:
Greg Clayton 2016-11-11 16:55:31 +00:00
parent 180529892d
commit e50b286c9e
1 changed files with 2 additions and 5 deletions

View File

@ -204,12 +204,9 @@ public:
return getDwarfOffsetByteSize();
}
uint8_t getDwarfOffsetByteSize() const {
switch (getFormat()) {
case dwarf::DwarfFormat::DWARF32:
return 4;
case dwarf::DwarfFormat::DWARF64:
if (getFormat() == dwarf::DwarfFormat::DWARF64)
return 8;
}
return 4;
}
uint64_t getBaseAddress() const { return BaseAddr; }