llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.39k stars 12.15k forks source link

Move COFF options parser from JITLink into libObject #56716

Open lhames opened 2 years ago

lhames commented 2 years ago

https://reviews.llvm.org/D130276 introduces a COFF options parser into JITLink to enable it to handle export, alternatename and other options. The parser should probably be moved to libObject long term, since it's important for interpreting the full meaning of a COFF relocatable object file.

We should also check whether the options parser could be brought up to parity with LLD's option parser, in which case that project might be able to share the (future) libObject options parser too.

llvmbot commented 2 years ago

@llvm/issue-subscribers-jitlink

lhames commented 2 years ago

CC @sunho, since https://reviews.llvm.org/D130276 is his patch