18 std::unique_ptr<MaterializationResponsibility> R) {
19 auto &ES = ObjLinkingLayer.getExecutionSession();
20 auto G = std::make_unique<LinkGraph>(
21 "orc_sectcreate_" + SectName, ES.getSymbolStringPool(),
22 ES.getTargetTriple(), ES.getTargetTriple().getArchPointerBitWidth() / 8,
25 auto &Sect =
G->createSection(SectName, MP);
27 auto &
B =
G->createContentBlock(Sect, Content,
ExecutorAddr(), Alignment, 0);
29 for (
auto &[Name, Info] : ExtraSymbols) {
32 G->addDefinedSymbol(
B, Info.Offset, *Name, 0, L, S, Info.Flags.isCallable(),
36 ObjLinkingLayer.emit(std::move(R), std::move(
G));