- /*let section = llvm::LLVMMDStringInContext(
- self.llcx,
- section.as_str().as_ptr().cast(),
- section.as_str().len() as c_uint,
- );
- assert!(alloc.relocations().is_empty());
-
- // The `inspect` method is okay here because we checked relocations, and
- // because we are doing this access to inspect the final interpreter state (not
- // as part of the interpreter execution).
- let bytes =
- alloc.inspect_with_uninit_and_ptr_outside_interpreter(0..alloc.len());
- let alloc = llvm::LLVMMDStringInContext(
- self.llcx,
- bytes.as_ptr().cast(),
- bytes.len() as c_uint,
- );
- let data = [section, alloc];
- let meta = llvm::LLVMMDNodeInContext(self.llcx, data.as_ptr(), 2);
- llvm::LLVMAddNamedMetadataOperand(
- self.llmod,
- "wasm.custom_sections\0".as_ptr().cast(),
- meta,
- );*/