Output MachO section names in the form SEGMENT,section.

llvm-svn: 135231
This commit is contained in:
Benjamin Kramer 2011-07-15 00:29:02 +00:00
parent 3d3a7cf563
commit c41d4fe243
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}