From 4f044c38e2eb3ae7cd2be8a566fed3256fd361fb Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Fri, 20 Sep 2019 12:45:11 +0200 Subject: [PATCH] clover/codegen: remove unused get_symbol_offsets function Signed-off-by: Karol Herbst Reviewed-by: Pierre Moreau --- .../state_trackers/clover/llvm/codegen/bitcode.cpp | 12 ------------ 1 file changed, 12 deletions(-) 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; -- 2.30.2