[llvm-objdump] Call exit(1) on error, i.e. fail early.
[oota-llvm.git] / tools / llvm-objdump / MachODump.cpp
index 7b868fa9d0de8716b5ab220adc14bcba4de6172d..2c9095468be52a24d48c4c478dd1e14e0424e12a 100644 (file)
@@ -8554,8 +8554,7 @@ SegInfo::SegInfo(const object::MachOObjectFile *Obj) {
   uint64_t CurSegAddress;
   for (const SectionRef &Section : Obj->sections()) {
     SectionInfo Info;
-    if (error(Section.getName(Info.SectionName)))
-      return;
+    error(Section.getName(Info.SectionName));
     Info.Address = Section.getAddress();
     Info.Size = Section.getSize();
     Info.SegmentName =