From 6956b1a517f470b133efd9a59084bee555057ceb Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 21 Apr 2014 13:45:32 +0000 Subject: Convert getFileOffset to getOffset and move it to its only user. We normally don't drop functions from the C API's, but in this case I think we can: * The old implementation of getFileOffset was fairly broken * The introduction of LLVMGetSymbolFileOffset was itself a C api breaking change as it removed LLVMGetSymbolOffset. * It is an incredibly specialized use case. The only reason MCJIT needs it is because of its odd position of being a dynamic linker of .o files. llvm-svn: 206750 --- llvm/lib/Object/Object.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'llvm/lib/Object/Object.cpp') diff --git a/llvm/lib/Object/Object.cpp b/llvm/lib/Object/Object.cpp index afba55340da..b0068a87b0d 100644 --- a/llvm/lib/Object/Object.cpp +++ b/llvm/lib/Object/Object.cpp @@ -184,13 +184,6 @@ uint64_t LLVMGetSymbolAddress(LLVMSymbolIteratorRef SI) { return ret; } -uint64_t LLVMGetSymbolFileOffset(LLVMSymbolIteratorRef SI) { - uint64_t ret; - if (error_code ec = (*unwrap(SI))->getFileOffset(ret)) - report_fatal_error(ec.message()); - return ret; -} - uint64_t LLVMGetSymbolSize(LLVMSymbolIteratorRef SI) { uint64_t ret; if (error_code ec = (*unwrap(SI))->getSize(ret)) -- cgit v1.2.3