This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by rafael on Apr 2 2014, 9:23 PM.

Details

Reviewers
Bigcheese
Summary

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 or .o files.

Diff Detail

Event Timeline

rafael closed this revision.Apr 21 2014, 6:53 AM