summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api
diff options
context:
space:
mode:
authorHubert Tong <hubert.reinterpretcast@gmail.com>2019-07-19 08:46:18 +0000
committerHubert Tong <hubert.reinterpretcast@gmail.com>2019-07-19 08:46:18 +0000
commit2711e16b354fbb830c54e621c22bf6ee5823437a (patch)
treebac4ad05b311a7410c9c559a742b32e1b457fa77 /lldb/packages/Python/lldbsuite/test/python_api
parent7d06ffff466d50ba7e65c154749bc4aea120a907 (diff)
downloadbcm5719-llvm-2711e16b354fbb830c54e621c22bf6ee5823437a.tar.gz
bcm5719-llvm-2711e16b354fbb830c54e621c22bf6ee5823437a.zip
[sanitizers] Use covering ObjectFormatType switches
Summary: This patch removes the `default` case from some switches on `llvm::Triple::ObjectFormatType`, and cases for the missing enumerators (`UnknownObjectFormat`, `Wasm`, and `XCOFF`) are then added. For `UnknownObjectFormat`, the effect of the action for the `default` case is maintained; otherwise, where `llvm_unreachable` is called, `report_fatal_error` is used instead. Where the `default` case returns a default value, `report_fatal_error` is used for XCOFF as a placeholder. For `Wasm`, the effect of the action for the `default` case in maintained. The code is structured to avoid strongly implying that the `Wasm` case is present for any reason other than to make the switch cover all `ObjectFormatType` enumerator values. Reviewers: sfertile, jasonliu, daltenty Reviewed By: sfertile Subscribers: hiraditya, aheejin, sunfish, llvm-commits, cfe-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D64222 llvm-svn: 366544
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud