This appears to be dead within the codebase, and adding trivial tests of it expose issues around debug information cloning which were (at least partially) resolved as part of https://reviews.llvm.org/D96531.
The patch would be NFC if not for the API/ABI break, but again I believe this is just removing a dead parameter. If there are cases where the CloneAndPrune* functions do make sense in a context where there may be module level changes then something like https://reviews.llvm.org/D96531 is needed instead.