aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-19 17:54:28 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-19 17:54:28 +0000
commit63a88ce5d42f28ce6f38d9f7aa45f8ad63052b8e (patch)
treec11ddfd15294f472cdc6e98c8845f64bed546828 /llvm/lib/Object/COFFObjectFile.cpp
parent3ea39f9e7871ae2628f6737834a74b62518e6d95 (diff)
downloadllvm-63a88ce5d42f28ce6f38d9f7aa45f8ad63052b8e.zip
llvm-63a88ce5d42f28ce6f38d9f7aa45f8ad63052b8e.tar.gz
llvm-63a88ce5d42f28ce6f38d9f7aa45f8ad63052b8e.tar.bz2
Make getRelocationSection MachO only.
There are 3 types of relocations on MachO * Scattered * Section based * Symbol based On ELF and COFF relocations are symbol based. We were in the strange situation that we abstracted over two of them. This makes section based relocations MachO only. llvm-svn: 240149
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
-rw-r--r--llvm/lib/Object/COFFObjectFile.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp
index 1055b98..e2f559e 100644
--- a/llvm/lib/Object/COFFObjectFile.cpp
+++ b/llvm/lib/Object/COFFObjectFile.cpp
@@ -991,19 +991,6 @@ symbol_iterator COFFObjectFile::getRelocationSymbol(DataRefImpl Rel) const {
return symbol_iterator(SymbolRef(Ref, this));
}
-section_iterator COFFObjectFile::getRelocationSection(DataRefImpl Rel) const {
- symbol_iterator Sym = getRelocationSymbol(Rel);
- if (Sym == symbol_end())
- return section_end();
- COFFSymbolRef Symb = getCOFFSymbol(*Sym);
- if (!Symb.isSection())
- return section_end();
- section_iterator Res(section_end());
- if (getSymbolSection(Sym->getRawDataRefImpl(),Res))
- return section_end();
- return Res;
-}
-
std::error_code COFFObjectFile::getRelocationType(DataRefImpl Rel,
uint64_t &Res) const {
const coff_relocation* R = toRel(Rel);