diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-01-10 16:47:17 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-01-10 16:47:17 +0000 |
commit | 2bd335470f8939782f3df7f6180282d3825d4f09 (patch) | |
tree | bd27d519e0b2bf705a91e00e029042feee20211d /tools/llvm-mc | |
parent | 6c0366cb2588ae49ef6e2f892db2099d41d85391 (diff) | |
download | external_llvm-2bd335470f8939782f3df7f6180282d3825d4f09.zip external_llvm-2bd335470f8939782f3df7f6180282d3825d4f09.tar.gz external_llvm-2bd335470f8939782f3df7f6180282d3825d4f09.tar.bz2 |
Remove unnecessary default cases in switches that cover all enum values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147855 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-mc')
-rw-r--r-- | tools/llvm-mc/Disassembler.cpp | 1 | ||||
-rw-r--r-- | tools/llvm-mc/llvm-mc.cpp | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/tools/llvm-mc/Disassembler.cpp b/tools/llvm-mc/Disassembler.cpp index 1b5aa57..03956b4 100644 --- a/tools/llvm-mc/Disassembler.cpp +++ b/tools/llvm-mc/Disassembler.cpp @@ -295,7 +295,6 @@ int Disassembler::disassembleEnhanced(const std::string &TS, Out << operandIndex << "-"; switch (token->type()) { - default: Out << "?"; break; case EDToken::kTokenWhitespace: Out << "w"; break; case EDToken::kTokenPunctuation: Out << "p"; break; case EDToken::kTokenOpcode: Out << "o"; break; diff --git a/tools/llvm-mc/llvm-mc.cpp b/tools/llvm-mc/llvm-mc.cpp index 8a9cbaf..25bc443 100644 --- a/tools/llvm-mc/llvm-mc.cpp +++ b/tools/llvm-mc/llvm-mc.cpp @@ -517,7 +517,6 @@ int main(int argc, char **argv) { setDwarfDebugFlags(argc, argv); switch (Action) { - default: case AC_AsLex: return AsLexInput(argv[0]); case AC_Assemble: |