Skip to content

Commit 43bb768

Browse files
committed
Metal: strip IR debuginfo before machine code generation.
This is entirely untested and expected to be incompatible with Metal's LLVM 5 IR.
1 parent 73f9deb commit 43bb768

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/metal.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ end
100100

101101
@unlocked function mcgen(job::CompilerJob{MetalCompilerTarget}, mod::LLVM.Module,
102102
format=LLVM.API.LLVMObjectFile)
103+
strip_debuginfo!(mod) # XXX: is this needed?
104+
103105
# translate to metallib
104106
input = tempname(cleanup=false) * ".bc"
105107
translated = tempname(cleanup=false) * ".metallib"

0 commit comments

Comments
 (0)