diff --git a/docs/LangRef.html b/docs/LangRef.html index 074e91e684c..5d3c7458c2d 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -110,6 +110,7 @@
metadata !{ metadata !"foo", i32 1 }+
The behavior is to emit an error if the llvm.module.flags does not contain a flag with the ID !"foo" that has the value '1'. If two or more !"qux" flags exist, then they must have the same value or an error will be issued.
On the Mach-O platform, Objective-C stores metadata about garbage collection + in a special section called "image info". The metadata consists of a version + number and a bitmask specifying what types of garbage collection are + supported (if any) by the file. If two or more modules are linked together + their garbage collection metadata needs to be merged rather than appended + together.
+ +The Objective-C garbage collection module flags metadata consists of the + following key-value pairs:
+ +Key | +Value | +
---|---|
Objective-C Version | +[Required] — The Objective-C ABI + version. Valid values are 1 and 2. | +
Objective-C Image Info Version | +[Required] — The version of the image info + section. Currently always 0. | +
Objective-C Image Info Section | +[Required] — The section to place the + metadata. Valid values are "__OBJC, __image_info, regular" for + Objective-C ABI version 1, and "__DATA,__objc_imageinfo, regular, + no_dead_strip" for Objective-C ABI version 2. | +
Objective-C Garbage Collection | +[Required] — Specifies whether garbage + collection is supported or not. Valid values are 0, for no garbage + collection, and 2, for garbage collection supported. | +
Objective-C GC Only | +[Optional] — Specifies that only garbage + collection is supported. If present, its value must be 6. This flag + requires that the Objective-C Garbage Collection flag have the + value 2. | +
Some important flag interactions:
+ +