Skip to content

Commit 54b2393

Browse files
committed
make switch clear that methname section is reused for properties
1 parent 5a1eca2 commit 54b2393

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/IRGen/GenDecl.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,14 +1059,12 @@ void IRGenModule::SetCStringLiteralSection(llvm::GlobalVariable *GV,
10591059
GV->setSection(IRGenModule::ObjCClassNameSectionName);
10601060
return;
10611061
case ObjCLabelType::MethodVarName:
1062+
case ObjCLabelType::PropertyName:
10621063
GV->setSection(IRGenModule::ObjCMethodNameSectionName);
10631064
return;
10641065
case ObjCLabelType::MethodVarType:
10651066
GV->setSection(IRGenModule::ObjCMethodTypeSectionName);
10661067
return;
1067-
case ObjCLabelType::PropertyName:
1068-
GV->setSection(IRGenModule::ObjCMethodNameSectionName);
1069-
return;
10701068
}
10711069
case llvm::Triple::ELF:
10721070
case llvm::Triple::Wasm:

0 commit comments

Comments
 (0)