summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object
diff options
context:
space:
mode:
authorLeonard Chan <leonardchan@google.com>2019-11-18 20:05:57 -0800
committerLeonard Chan <leonardchan@google.com>2019-11-18 20:05:57 -0800
commit66b6b92765213a6bde96aea7a393621426027543 (patch)
tree41a638479dbca476ceece110be256de129e8f269 /llvm/lib/Object
parent45f8ee5f3c5ad4bc0b041c49a251d674c14dbc13 (diff)
downloadbcm5719-llvm-66b6b92765213a6bde96aea7a393621426027543.tar.gz
bcm5719-llvm-66b6b92765213a6bde96aea7a393621426027543.zip
Revert "implement printing out raw section data of xcoff objectfile for llvm-objdump"
This reverts commit 8f8a9f3437d4517f674395da30edb59d5514f7bc. Reverting since this patch seems to break a lot of llvm buildbots.
Diffstat (limited to 'llvm/lib/Object')
-rw-r--r--llvm/lib/Object/XCOFFObjectFile.cpp25
1 files changed, 8 insertions, 17 deletions
diff --git a/llvm/lib/Object/XCOFFObjectFile.cpp b/llvm/lib/Object/XCOFFObjectFile.cpp
index 6cc8deca73b..5ca2a6a03f0 100644
--- a/llvm/lib/Object/XCOFFObjectFile.cpp
+++ b/llvm/lib/Object/XCOFFObjectFile.cpp
@@ -191,8 +191,9 @@ Expected<StringRef> XCOFFObjectFile::getSymbolName(DataRefImpl Symb) const {
}
Expected<uint64_t> XCOFFObjectFile::getSymbolAddress(DataRefImpl Symb) const {
- assert(!is64Bit() && "Symbol table support not implemented for 64-bit.");
- return toSymbolEntry(Symb)->Value;
+ uint64_t Result = 0;
+ llvm_unreachable("Not yet implemented!");
+ return Result;
}
uint64_t XCOFFObjectFile::getSymbolValueImpl(DataRefImpl Symb) const {
@@ -265,19 +266,7 @@ uint64_t XCOFFObjectFile::getSectionSize(DataRefImpl Sec) const {
Expected<ArrayRef<uint8_t>>
XCOFFObjectFile::getSectionContents(DataRefImpl Sec) const {
- if (isSectionVirtual(Sec))
- return ArrayRef<uint8_t>();
-
- const uint64_t OffsetToRaw = is64Bit()
- ? toSection64(Sec)->FileOffsetToRawData
- : toSection32(Sec)->FileOffsetToRawData;
-
- const uint8_t * ContentStart = base() + OffsetToRaw;
- uint64_t SectionSize = getSectionSize(Sec);
- if (checkOffset(Data, uintptr_t(ContentStart), SectionSize))
- return make_error<BinaryError>();
-
- return makeArrayRef(ContentStart,SectionSize);
+ llvm_unreachable("Not yet implemented!");
}
uint64_t XCOFFObjectFile::getSectionAlignment(DataRefImpl Sec) const {
@@ -307,8 +296,9 @@ bool XCOFFObjectFile::isSectionBSS(DataRefImpl Sec) const {
}
bool XCOFFObjectFile::isSectionVirtual(DataRefImpl Sec) const {
- return is64Bit() ? toSection64(Sec)->FileOffsetToRawData == 0
- : toSection32(Sec)->FileOffsetToRawData == 0;
+ bool Result = false;
+ llvm_unreachable("Not yet implemented!");
+ return Result;
}
relocation_iterator XCOFFObjectFile::section_rel_begin(DataRefImpl Sec) const {
@@ -394,6 +384,7 @@ Triple::ArchType XCOFFObjectFile::getArch() const {
}
SubtargetFeatures XCOFFObjectFile::getFeatures() const {
+ llvm_unreachable("Not yet implemented!");
return SubtargetFeatures();
}
OpenPOWER on IntegriCloud