clover/codegen: remove unused get_symbol_offsets function

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Pierre Moreau <dev@pmoreau.org>
This commit is contained in:
Karol Herbst 2019-09-20 12:45:11 +02:00 committed by Karol Herbst
parent 2859c49f7b
commit 4f044c38e2

View 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;