diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-07-15 00:29:02 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-07-15 00:29:02 +0000 |
commit | c41d4fe2432263957da1e39d3a933a985725e9e5 (patch) | |
tree | 7c2165827a29aece74504232eb2e95e00eb32fce /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 3d3a7cf563ce8cd8d6602035775b26c3d3ffbba5 (diff) | |
download | bcm5719-llvm-c41d4fe2432263957da1e39d3a933a985725e9e5.tar.gz bcm5719-llvm-c41d4fe2432263957da1e39d3a933a985725e9e5.zip |
Output MachO section names in the form SEGMENT,section.
llvm-svn: 135231
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/MachOObjectFile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index daf85b16a90..044fd326604 100644 --- a/llvm/lib/Object/MachOObjectFile.cpp +++ b/llvm/lib/Object/MachOObjectFile.cpp @@ -264,7 +264,7 @@ error_code MachOObjectFile::getSectionName(DataRefImpl DRI, InMemoryStruct<macho::Section64> Sect; MachOObj->ReadSection64(LCI, DRI.d.b, Sect); - strcpy(result, SLC->Name); + strcpy(result, Sect->SegmentName); strcat(result, ","); strcat(result, Sect->Name); } else { @@ -274,7 +274,7 @@ error_code MachOObjectFile::getSectionName(DataRefImpl DRI, InMemoryStruct<macho::Section> Sect; MachOObj->ReadSection(LCI, DRI.d.b, Sect); - strcpy(result, SLC->Name); + strcpy(result, Sect->SegmentName); strcat(result, ","); strcat(result, Sect->Name); } |