diff options
author | Karol Herbst <[email protected]> | 2019-09-20 12:45:11 +0200 |
---|---|---|
committer | Karol Herbst <[email protected]> | 2019-09-25 10:39:58 +0000 |
commit | 4f044c38e2eb3ae7cd2be8a566fed3256fd361fb (patch) | |
tree | b9e9d1d0103cc7ab8c7a916558358491e512bf0f /src/gallium/state_trackers | |
parent | 2859c49f7b229db4a37b7c10fab739dbc96922cd (diff) |
clover/codegen: remove unused get_symbol_offsets function
Signed-off-by: Karol Herbst <[email protected]>
Reviewed-by: Pierre Moreau <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp | 12 |
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; |