MichaReiser / llvm-node

LLVM 9.0+ Node Bindings
MIT License
183 stars 29 forks source link

Can't find Function.eraseFromParent() #130

Open shans opened 3 years ago

shans commented 3 years ago

I'm currently working through the LLVM Kaleidoscope tutorial - in chapter 3 (https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/LangImpl03.html) there's reference to an eraseFromParent() method on Function, but it doesn't show up in the typeScript definitions file.

MichaReiser commented 3 years ago

Hy @shans

The library only exposes a subset of LLVM and functions are added on a "by need" basis. Feel free to create a PR that adds eraseFromParent to the Function wrapper.