We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f2e555 commit 6589790Copy full SHA for 6589790
src/driver.jl
@@ -197,14 +197,7 @@ const __llvm_initialized = Ref(false)
197
f == entry && continue
198
isdeclaration(f) && continue
199
LLVM.isintrinsic(f) && continue
200
- # FIXME: expose llvm::Function::deleteBody with a C API
201
- fn = LLVM.name(f)
202
- LLVM.name!(f, "")
203
- f′ = LLVM.Function(ir, fn, eltype(llvmtype(f)))
204
- # copying attributes is broken due to maleadt/LLVM.jl#186,
205
- # but that doesn't matter because `only_entry` is only used for reflection,
206
- # and the emitted code has already been optimized at this point.
207
- replace_uses!(f, f′)
+ empty!(f)
208
end
209
210
0 commit comments