mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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
This commit is contained in:
@@ -296,7 +296,6 @@ static tool_output_file *GetOutputStream(const char *TargetName,
|
||||
OutputFilename = GetFileNameRoot(InputFilename);
|
||||
|
||||
switch (FileType) {
|
||||
default: assert(0 && "Unknown file type");
|
||||
case TargetMachine::CGFT_AssemblyFile:
|
||||
if (TargetName[0] == 'c') {
|
||||
if (TargetName[1] == 0)
|
||||
@@ -324,7 +323,6 @@ static tool_output_file *GetOutputStream(const char *TargetName,
|
||||
// Decide if we need "binary" output.
|
||||
bool Binary = false;
|
||||
switch (FileType) {
|
||||
default: assert(0 && "Unknown file type");
|
||||
case TargetMachine::CGFT_AssemblyFile:
|
||||
break;
|
||||
case TargetMachine::CGFT_ObjectFile:
|
||||
|
Reference in New Issue
Block a user