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 0ef34489f38b15226268ac886e04fd48506e84b8..7434e8cf6c9ae0b09f11748e68c1b9663a466da5 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;