From: Karol Herbst Date: Fri, 20 Sep 2019 10:45:11 +0000 (+0200) Subject: clover/codegen: remove unused get_symbol_offsets function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f044c38e2eb3ae7cd2be8a566fed3256fd361fb;p=mesa.git clover/codegen: remove unused get_symbol_offsets function Signed-off-by: Karol Herbst Reviewed-by: Pierre Moreau --- diff --git a/src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp b/src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp index 0ef34489f38..7434e8cf6c9 100644 --- a/src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp +++ b/src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp @@ -51,18 +51,6 @@ using namespace clover; using namespace clover::llvm; namespace { - std::map - get_symbol_offsets(const ::llvm::Module &mod) { - std::map offsets; - unsigned i = 0; - - for (const auto &name : map(std::mem_fn(&::llvm::Function::getName), - get_kernels(mod))) - offsets[name] = i++; - - return offsets; - } - std::vector emit_code(const ::llvm::Module &mod) { ::llvm::SmallVector data;