clover/codegen: remove unused get_symbol_offsets function
authorKarol Herbst <kherbst@redhat.com>
Fri, 20 Sep 2019 10:45:11 +0000 (12:45 +0200)
committerKarol Herbst <karolherbst@gmail.com>
Wed, 25 Sep 2019 10:39:58 +0000 (10:39 +0000)
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Pierre Moreau <dev@pmoreau.org>
src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp

index 0ef3448..7434e8c 100644 (file)
@@ -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;