Skip to content

Commit a6f98a1

Browse files
committedJul 21, 2021
Remove unused code.
1 parent 6c11dab commit a6f98a1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed
 

‎src/ptx.jl

-6
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,6 @@ function process_entry!(@nospecialize(job::CompilerJob{PTXCompilerTarget}),
160160
# calling convention
161161
callconv!(entry, LLVM.API.LLVMPTXKernelCallConv)
162162
end
163-
else
164-
# we can't look up device functions using the CUDA APIs, so alias them to a global
165-
gv = GlobalVariable(mod, llvmtype(entry), LLVM.name(entry) * "_slot")
166-
initializer!(gv, entry)
167-
linkage!(gv, LLVM.API.LLVMLinkOnceODRLinkage)
168-
set_used!(mod, gv)
169163
end
170164

171165
return entry

0 commit comments

Comments
 (0)