mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-15 04:29:42 +00:00
5fb5df9c83
target Objective-C runtime down to the frontend: break this down into a single target runtime kind and version, and compute all the relevant information from that. This makes it relatively painless to add support for new runtimes to the compiler. Make the new -cc1 flag, -fobjc-runtime=blah-x.y.z, available at the driver level as a better and more general alternative to -fgnu-runtime and -fnext-runtime. This new concept of an Objective-C runtime also encompasses what we were previously separating out as the "Objective-C ABI", so fragile vs. non-fragile runtimes are now really modelled as different kinds of runtime, paving the way for better overall differentiation. As a sort of special case, continue to accept the -cc1 flag -fobjc-runtime-has-weak, as a sop to PLCompatibilityWeak. I won't go so far as to say "no functionality change", even ignoring the new driver flag, but subtle changes in driver semantics are almost certainly not intended. llvm-svn: 158793
47 lines
1.3 KiB
Objective-C
47 lines
1.3 KiB
Objective-C
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
|
|
// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
|
|
|
|
#ifdef __cplusplus
|
|
typedef bool _Bool;
|
|
#endif
|
|
|
|
@interface I
|
|
{
|
|
struct {
|
|
unsigned int d : 1;
|
|
} bitfield;
|
|
}
|
|
@end
|
|
|
|
@implementation I
|
|
@end
|
|
|
|
@interface J
|
|
{
|
|
struct {
|
|
unsigned short _reserved : 16;
|
|
|
|
_Bool _draggedNodesAreDeletable: 1;
|
|
_Bool _draggedOutsideOutlineView : 1;
|
|
_Bool _adapterRespondsTo_addRootPaths : 1;
|
|
_Bool _adapterRespondsTo_moveDataNodes : 1;
|
|
_Bool _adapterRespondsTo_removeRootDataNode : 1;
|
|
_Bool _adapterRespondsTo_doubleClickDataNode : 1;
|
|
_Bool _adapterRespondsTo_selectDataNode : 1;
|
|
_Bool _adapterRespondsTo_textDidEndEditing : 1;
|
|
|
|
_Bool _adapterRespondsTo_updateAndSaveRoots : 1;
|
|
_Bool _adapterRespondsTo_askToDeleteRootNodes : 1;
|
|
_Bool _adapterRespondsTo_contextMenuForSelectedNodes : 1;
|
|
_Bool _adapterRespondsTo_pasteboardFilenamesForNodes : 1;
|
|
_Bool _adapterRespondsTo_writeItemsToPasteboard : 1;
|
|
_Bool _adapterRespondsTo_writeItemsToPasteboardXXXX : 1;
|
|
} _flags;
|
|
}
|
|
@end
|
|
|
|
@implementation J
|
|
@end
|
|
|
|
|