woodruffw / mollusc

Pure-Rust libraries for parsing, interpreting, and analyzing LLVM
MIT License
77 stars 6 forks source link

Map each `FUNCTION_BLOCK` #16

Open woodruffw opened 2 years ago

woodruffw commented 2 years ago

I'm going to try to constrain #14 to just the MODULE_CODE_FUNCTION records, not the FUNCTION_BLOCKs themselves.

Mapping FUNCTION_BLOCK requires support for three subblocks:

jw910731 commented 1 year ago

Is there any way to construct an example bitcode file that has a VALUE_SYMTAB_BLOCK in FUNCTION_BLOCK ? I was unable to get a file that has this property and had difficulty to do further research and help.

My current way of creating bitcode file relies on clang and clang++