Displaying 2 results from an estimated 2 matches for "objc_image_info".
2010 Oct 29
6
[LLVMdev] RFC: [Proposal] Module-Level Attributes
...oundation
ld: warning: section __DATA/__objc_imageinfo__DATA has unexpectedly large size 16 in /tmp/lto.o
$
In this example, LTO is concatenating the imageinfo sections instead of
performing a proper merge.
Here are the LLVM global variables that contain the imageinfo information.
-fno-objc-gc:
@OBJC_IMAGE_INFO = private constant [2 x i32] [i32 0, i32 16], section "__DATA, __objc_imageinfo, regular, no_dead_strip"
-fobjc-gc-only:
@OBJC_IMAGE_INFO = private constant [2 x i32] [i32 0, i32 22], section "__DATA, __objc_imageinfo, regular, no_dead_strip"
With module-level attributes, thes...
2017 Jun 15
7
[RFC] Profile guided section layout
...eInfo(M, Version, Flags, Section);
- if (Section.empty())
- return;
+ if (!Section.empty()) {
+ auto &C = getContext();
+ auto *S = C.getELFSection(Section, ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
+ Streamer.SwitchSection(S);
+ Streamer.EmitLabel(C.getOrCreateSymbol(StringRef("OBJC_IMAGE_INFO")));
+ Streamer.EmitIntValue(Version, 4);
+ Streamer.EmitIntValue(Flags, 4);
+ Streamer.AddBlankLine();
+ }
- auto &C = getContext();
- auto *S = C.getELFSection(Section, ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
- Streamer.SwitchSection(S);
- Streamer.EmitLabel(C.getOrCreateSymb...