]> granicus.if.org Git - llvm/commit
[NFC] Make some ObjectFormatType switches covering
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 4 Jul 2019 21:40:28 +0000 (21:40 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 4 Jul 2019 21:40:28 +0000 (21:40 +0000)
commit7b335e79d9e0089dd500d7cbd823e5e65a46f3e6
treec8f8c52945d612bf0833328bd6d84da4b484aca4
parent54b24f6f26b799b70f52add93ac4433a31e03dd7
[NFC] Make some ObjectFormatType switches covering

Summary:
This patch removes the `default` case from some switches on
`llvm::Triple::ObjectFormatType`, and cases for the missing enumerators
are then added.

For `UnknownObjectFormat`, the action (`llvm_unreachable`) for the
`default` case is kept.

For the other unhandled cases, `report_fatal_error` is used instead.

Reviewers: sfertile, jasonliu, daltenty

Reviewed By: sfertile

Subscribers: wuzish, aheejin, jsji, cfe-commits, llvm-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D63767

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365160 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/TargetRegistry.h