From 051c948bbe3f64a7c450120963b28a5959382cb8 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 3 Apr 2014 03:13:33 +0000 Subject: Implement get getSymbolFileOffset with getSymbolAddress. This has the following advantages: * Less code. * The old ELF implementation was wrong for non-relocatable objects. * The old ELF implementation (and I think MachO) was wrong for thumb. No current testcase since this is only used from MCJIT and it only uses relocatable objects and I don't think it supports thumb yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205508 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Object/COFF.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include/llvm/Object/COFF.h') diff --git a/include/llvm/Object/COFF.h b/include/llvm/Object/COFF.h index 6ece1b4cd5..6e05c2d006 100644 --- a/include/llvm/Object/COFF.h +++ b/include/llvm/Object/COFF.h @@ -363,8 +363,6 @@ protected: void moveSymbolNext(DataRefImpl &Symb) const override; error_code getSymbolName(DataRefImpl Symb, StringRef &Res) const override; error_code getSymbolAddress(DataRefImpl Symb, uint64_t &Res) const override; - error_code getSymbolFileOffset(DataRefImpl Symb, - uint64_t &Res) const override; error_code getSymbolSize(DataRefImpl Symb, uint64_t &Res) const override; uint32_t getSymbolFlags(DataRefImpl Symb) const override; error_code getSymbolType(DataRefImpl Symb, -- cgit v1.2.3