summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-30 20:18:49 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-30 20:18:49 +0000
commite9c58c74698a99f0102bd1a134937876565f2d3c (patch)
tree48477c5d0016b2816e14dbb8b06bb386d3b67d42 /llvm/lib/Object/COFFObjectFile.cpp
parentb138ae7cacf1732a2a03a6d71dc086ae77d4c49f (diff)
downloadbcm5719-llvm-e9c58c74698a99f0102bd1a134937876565f2d3c.tar.gz
bcm5719-llvm-e9c58c74698a99f0102bd1a134937876565f2d3c.zip
Implement containsSymbol with other lower level methods.
llvm-svn: 241112
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
-rw-r--r--llvm/lib/Object/COFFObjectFile.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp
index 3babc210dd9..d8f460f29b0 100644
--- a/llvm/lib/Object/COFFObjectFile.cpp
+++ b/llvm/lib/Object/COFFObjectFile.cpp
@@ -322,14 +322,6 @@ bool COFFObjectFile::isSectionVirtual(DataRefImpl Ref) const {
return Sec->PointerToRawData == 0;
}
-bool COFFObjectFile::sectionContainsSymbol(DataRefImpl SecRef,
- DataRefImpl SymbRef) const {
- const coff_section *Sec = toSec(SecRef);
- COFFSymbolRef Symb = getCOFFSymbol(SymbRef);
- int32_t SecNumber = (Sec - SectionTable) + 1;
- return SecNumber == Symb.getSectionNumber();
-}
-
static uint32_t getNumberOfRelocations(const coff_section *Sec,
MemoryBufferRef M, const uint8_t *base) {
// The field for the number of relocations in COFF section table is only
OpenPOWER on IntegriCloud