[lld] [clang] [llvm] [clang-tools-extra] [Object][Wasm] Allow parsing of GC types in type and table sections (PR #79235)

Sam Clegg via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 24 16:58:00 PST 2024


================
@@ -259,10 +259,13 @@ class InputFunction : public InputChunk {
         file->codeSection->Content.slice(inputSectionOffset, function->Size);
     debugName = function->DebugName;
     comdat = function->Comdat;
+    assert(s.Kind != WasmSignature::Placeholder);
----------------
sbc100 wrote:

Yes, perhaps another flag in the object file, ("hasGCTypes").. or perhaps the linker to iterate through the types section to make sure it understands them all and error out if it doesn't?

https://github.com/llvm/llvm-project/pull/79235


More information about the cfe-commits mailing list