case Flavor::core:
return CoreDriver::link(args.size(), args.data(), diagnostics);
case Flavor::win_link:
- llvm_unreachable("Unsupported flavor");
+ break;
case Flavor::invalid:
return true;
}
+ llvm_unreachable("Unsupported flavor");
}
} // end namespace lld
case MachOTargetInfo::arch_armv7s:
return mach_o::CPU_TYPE_ARM;
case MachOTargetInfo::arch_unknown:
- llvm_unreachable("Unknown arch type");
+ break;
}
+ llvm_unreachable("Unknown arch type");
}
uint32_t MachOTargetInfo::getCPUSubType() const {
case MachOTargetInfo::arch_armv7s:
return mach_o::CPU_SUBTYPE_ARM_V7S;
case MachOTargetInfo::arch_unknown:
- llvm_unreachable("Unknown arch type");
+ break;
}
+ llvm_unreachable("Unknown arch type");
}