diff options
author | Keith Wyss <wyssman@gmail.com> | 2017-10-13 00:06:35 +0000 |
---|---|---|
committer | Keith Wyss <wyssman@gmail.com> | 2017-10-13 00:06:35 +0000 |
commit | 4d725c63e3ffc51ec283e35298afa2bd14c34eec (patch) | |
tree | faddcb20df575c10c85e8f0d9777d13680e84115 /tools/llvm-xray | |
parent | 18264d1854a52e0ef36d7c17d331a6f899783a7a (diff) |
Removing default case statement from covered switch.
Previous patch did not count on the llvm command line parser to restrict the
inputs, but it is safe to do so.
Fix forward for patch with details:
-- https://reviews.llvm.org/D38650 and
-- https://llvm.org/svn/llvm-project/llvm/trunk@315635 91177308-0d34-0410-b5e6-96231b3b80d8
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-xray')
-rw-r--r-- | tools/llvm-xray/xray-stacks.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/llvm-xray/xray-stacks.cc b/tools/llvm-xray/xray-stacks.cc index be3d9d5f6a6..fd5df82e093 100644 --- a/tools/llvm-xray/xray-stacks.cc +++ b/tools/llvm-xray/xray-stacks.cc @@ -798,10 +798,6 @@ static CommandRegistration Unused(&Stack, []() -> Error { ST.printAllAggregatingThreads<AggregationType::INVOCATION_COUNT>( outs(), FuncIdHelper, StacksOutputFormat); break; - default: - return make_error<StringError>( - "Illegal value for aggregation-type.", - make_error_code(errc::result_out_of_range)); } } else { switch (RequestedAggregation) { @@ -813,10 +809,6 @@ static CommandRegistration Unused(&Stack, []() -> Error { ST.printAllPerThread<AggregationType::INVOCATION_COUNT>( outs(), FuncIdHelper, StacksOutputFormat); break; - default: - return make_error<StringError>( - "Illegal value for aggregation-type.", - make_error_code(errc::result_out_of_range)); } } return Error::success(); |