mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 06:10:13 +01:00
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:
parent
2859c49f7b
commit
4f044c38e2
1 changed files with 0 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue