aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarol Herbst <[email protected]>2019-09-20 12:45:11 +0200
committerKarol Herbst <[email protected]>2019-09-25 10:39:58 +0000
commit4f044c38e2eb3ae7cd2be8a566fed3256fd361fb (patch)
treeb9e9d1d0103cc7ab8c7a916558358491e512bf0f
parent2859c49f7b229db4a37b7c10fab739dbc96922cd (diff)
clover/codegen: remove unused get_symbol_offsets function
Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Pierre Moreau <[email protected]>
-rw-r--r--src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp12
1 files changed, 0 insertions, 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<std::string, unsigned>
- get_symbol_offsets(const ::llvm::Module &mod) {
- std::map<std::string, unsigned> 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<char>
emit_code(const ::llvm::Module &mod) {
::llvm::SmallVector<char, 1024> data;