mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-01 16:26:29 +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:
@@ -301,7 +301,6 @@ void CppWriter::printLinkageType(GlobalValue::LinkageTypes LT) {
|
||||
|
||||
void CppWriter::printVisibilityType(GlobalValue::VisibilityTypes VisType) {
|
||||
switch (VisType) {
|
||||
default: llvm_unreachable("Unknown GVar visibility");
|
||||
case GlobalValue::DefaultVisibility:
|
||||
Out << "GlobalValue::DefaultVisibility";
|
||||
break;
|
||||
@@ -2049,8 +2048,6 @@ bool CppWriter::runOnModule(Module &M) {
|
||||
fname = "makeLLVMType";
|
||||
printType(fname,tgtname);
|
||||
break;
|
||||
default:
|
||||
error("Invalid generation option");
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user