Convert getFileOffset to getOffset and move it to its only user.

Press ? to show keyboard shortcuts.
Auditors
Bigcheese
H1 Object File Stuff Triggered Audit
Committed
rafaelApr 21 2014, 6:45 AM
Parents
rL206749: Reapply r206732. This time without optimization of branches.
Branches
Unknown
Tags
Unknown
Subscribers
None
Description

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.

rL206750

llvm/trunk/bindings/python/llvm/object.py

Loading...

llvm/trunk/include/llvm-c/Object.h

Loading...

llvm/trunk/include/llvm/Object/ObjectFile.h

Loading...

llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp

Loading...

llvm/trunk/lib/Object/Object.cpp

Loading...

llvm/trunk/tools/llvm-c-test/object.c

Loading...

Add Comment