summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objdump/MachODump.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2012-12-13 06:36:18 +0000
committerEric Christopher <echristo@gmail.com>2012-12-13 06:36:18 +0000
commitc859c2912f4dd341a4c32c397663692a8a8167ba (patch)
tree5a8d1cbb57d1227259332b23cbf8c6ef29c1297f /llvm/tools/llvm-objdump/MachODump.cpp
parent5e6c361bc068a8b4997891dbfa74d08b52fb5458 (diff)
downloadbcm5719-llvm-c859c2912f4dd341a4c32c397663692a8a8167ba.tar.gz
bcm5719-llvm-c859c2912f4dd341a4c32c397663692a8a8167ba.zip
Revert "Add a funciton to get the segment name of a section."
This reverts commit r170095 since it appears to be breaking the bots. llvm-svn: 170105
Diffstat (limited to 'llvm/tools/llvm-objdump/MachODump.cpp')
-rw-r--r--llvm/tools/llvm-objdump/MachODump.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/tools/llvm-objdump/MachODump.cpp b/llvm/tools/llvm-objdump/MachODump.cpp
index c324ff13a6b..3a350382ae1 100644
--- a/llvm/tools/llvm-objdump/MachODump.cpp
+++ b/llvm/tools/llvm-objdump/MachODump.cpp
@@ -334,15 +334,9 @@ void llvm::DisassembleInputMachO(StringRef Filename) {
for (unsigned SectIdx = 0; SectIdx != Sections.size(); SectIdx++) {
StringRef SectName;
if (Sections[SectIdx].getName(SectName) ||
- SectName != "__text")
+ SectName.compare("__TEXT,__text"))
continue; // Skip non-text sections
- StringRef SegmentName;
- DataRefImpl DR = Sections[SectIdx].getRawDataRefImpl();
- if (MachOOF->getSectionFinalSegmentName(DR, SegmentName) ||
- SegmentName != "__TEXT")
- continue;
-
// Insert the functions from the function starts segment into our map.
uint64_t VMAddr;
Sections[SectIdx].getAddress(VMAddr);
OpenPOWER on IntegriCloud