llvm-node icon indicating copy to clipboard operation
llvm-node copied to clipboard

Can't find Function.eraseFromParent()

Open shans opened this issue 4 years ago • 1 comments
trafficstars

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.

shans avatar Jun 03 '21 01:06 shans

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.

MichaReiser avatar Jun 03 '21 08:06 MichaReiser