llvm-project/llvm/lib/ObjCopy/wasm
Guilhem 0041382198 [llvm-objcopy] Fix --section-add when section contain empty bytes
Implicit cast between char* and StringRef when writing sections.

Reproduce:
```
$> llvm-objcopy --dump-section=name=name.data out.wasm
$> llvm-objcopy --remove-section=name out.wasm out_no_name.wasm
$> llvm-objcopy --add-section=name=name.data out_no_name.wasm out_new_name.wasm

# With wasm-objdump -h we can see that the name section is not totally copied in the new wasm file (if it actually contain empty bytes)

```

Reviewed By: dschuff

Differential Revision: https://reviews.llvm.org/D139210
2022-12-02 16:59:57 -08:00
..
WasmObjcopy.cpp [llvm-objcopy] Fix --section-add when section contain empty bytes 2022-12-02 16:59:57 -08:00
WasmObject.cpp
WasmObject.h
WasmReader.cpp [WebAssembly] Add WASM_SEC_LAST_KNOWN to BinaryFormat section types list [NFC] 2022-06-07 12:05:23 -07:00
WasmReader.h
WasmWriter.cpp
WasmWriter.h