OSDN Git Service

Convert getFileOffset to getOffset and move it to its only user.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 21 Apr 2014 13:45:32 +0000 (13:45 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 21 Apr 2014 13:45:32 +0000 (13:45 +0000)
commit7426771280164bf3829a56af23fcc381c4383423
treee26a43a6884c2fe1e82828feeeb6a46a145b4c44
parentd329c79f164b5bd876014c4c0225ae298640bd81
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206750 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/python/llvm/object.py
include/llvm-c/Object.h
include/llvm/Object/ObjectFile.h
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
lib/Object/Object.cpp
tools/llvm-c-test/object.c