Lines Matching refs:LC
111 size_t writeLoadCommandData(MachOYAML::LoadCommand &LC, raw_ostream &OS) { in writeLoadCommandData() argument
116 size_t writeLoadCommandData<MachO::segment_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData() argument
119 for (const auto &Sec : LC.Sections) { in writeLoadCommandData()
130 writeLoadCommandData<MachO::segment_command_64>(MachOYAML::LoadCommand &LC, in writeLoadCommandData() argument
133 for (const auto &Sec : LC.Sections) { in writeLoadCommandData()
143 size_t writePayloadString(MachOYAML::LoadCommand &LC, raw_ostream &OS) { in writePayloadString() argument
145 if (!LC.PayloadString.empty()) { in writePayloadString()
146 OS.write(LC.PayloadString.c_str(), LC.PayloadString.length()); in writePayloadString()
147 BytesWritten = LC.PayloadString.length(); in writePayloadString()
153 size_t writeLoadCommandData<MachO::dylib_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData() argument
155 return writePayloadString(LC, OS); in writeLoadCommandData()
159 size_t writeLoadCommandData<MachO::dylinker_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData() argument
161 return writePayloadString(LC, OS); in writeLoadCommandData()
165 size_t writeLoadCommandData<MachO::rpath_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData() argument
167 return writePayloadString(LC, OS); in writeLoadCommandData()
189 for (auto &LC : Obj.LoadCommands) { in writeLoadCommands() local
193 OS.write(reinterpret_cast<const char *>(&(LC.Data.LCStruct##_data)), \ in writeLoadCommands()
196 BytesWritten += writeLoadCommandData<MachO::LCStruct>(LC, OS); \ in writeLoadCommands()
199 switch (LC.Data.load_command_data.cmd) { in writeLoadCommands()
201 OS.write(reinterpret_cast<const char *>(&(LC.Data.load_command_data)), in writeLoadCommands()
204 BytesWritten += writeLoadCommandData<MachO::load_command>(LC, OS); in writeLoadCommands()
209 if (LC.PayloadBytes.size() > 0) { in writeLoadCommands()
210 OS.write(reinterpret_cast<const char *>(LC.PayloadBytes.data()), in writeLoadCommands()
211 LC.PayloadBytes.size()); in writeLoadCommands()
212 BytesWritten += LC.PayloadBytes.size(); in writeLoadCommands()
215 if (LC.ZeroPadBytes > 0) { in writeLoadCommands()
216 ZeroFillBytes(OS, LC.ZeroPadBytes); in writeLoadCommands()
217 BytesWritten += LC.ZeroPadBytes; in writeLoadCommands()
222 auto BytesRemaining = LC.Data.load_command_data.cmdsize - BytesWritten; in writeLoadCommands()
231 for (auto &LC : Obj.LoadCommands) { in writeSectionData() local
232 switch (LC.Data.load_command_data.cmd) { in writeSectionData()
236 auto segname = LC.Data.segment_command_data.segname; in writeSectionData()
237 uint64_t segOff = is64Bit ? LC.Data.segment_command_64_data.fileoff in writeSectionData()
238 : LC.Data.segment_command_data.fileoff; in writeSectionData()
250 for (auto &Sec : LC.Sections) { in writeSectionData()
266 uint64_t segSize = is64Bit ? LC.Data.segment_command_64_data.filesize in writeSectionData()
267 : LC.Data.segment_command_data.filesize; in writeSectionData()
342 for (auto &LC : Obj.LoadCommands) { in writeLinkEditData() local
343 switch (LC.Data.load_command_data.cmd) { in writeLinkEditData()
345 SymtabCmd = &LC.Data.symtab_command_data; in writeLinkEditData()
352 DyldInfoOnlyCmd = &LC.Data.dyld_info_command_data; in writeLinkEditData()
490 void writeFatArch(MachOYAML::FatArch &LC, raw_ostream &OS) {} in writeFatArch() argument