summaryrefslogtreecommitdiff
path: root/tools/llvm-xray
diff options
context:
space:
mode:
authorKeith Wyss <wyssman@gmail.com>2017-10-13 00:06:35 +0000
committerKeith Wyss <wyssman@gmail.com>2017-10-13 00:06:35 +0000
commit4d725c63e3ffc51ec283e35298afa2bd14c34eec (patch)
treefaddcb20df575c10c85e8f0d9777d13680e84115 /tools/llvm-xray
parent18264d1854a52e0ef36d7c17d331a6f899783a7a (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.cc8
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();