- switch ( objcConstraint ) {
- case ld::File::objcConstraintNone:
- case ld::File::objcConstraintRetainRelease:
- if ( compaction )
- warning("ignoring -objc_gc_compaction because code not compiled for ObjC garbage collection");
- break;
- case ld::File::objcConstraintRetainReleaseOrGC:
- value |= OBJC_IMAGE_SUPPORTS_GC;
- if ( compaction )
- value |= OBJC_IMAGE_SUPPORTS_COMPACTION;
- break;
- case ld::File::objcConstraintGC:
- value |= OBJC_IMAGE_SUPPORTS_GC | OBJC_IMAGE_REQUIRES_GC;
- if ( compaction )
- value |= OBJC_IMAGE_SUPPORTS_COMPACTION;
- break;
- case ld::File::objcConstraintRetainReleaseForSimulator:
- value |= OBJC_IMAGE_IS_SIMULATED;
- break;
- }
-