[llvm] [IR] Add argument to Function::deleteBody to preserve metadata (PR #164960)

Jannik Silvanus via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 28 01:04:57 PDT 2025


jasilvanus wrote:

I realized `Function::deleteBody` also changes linkage, which my use case also does not want, instead of adding more options to `Function::deleteBody` I ended up just manually deleting the BBs, no longer needing this PR.

However, I'm not sure that behavior of changing a lot more than just deleting the body is what we want by default...

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


More information about the llvm-commits mailing list