From c41d4fe2432263957da1e39d3a933a985725e9e5 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 15 Jul 2011 00:29:02 +0000 Subject: Output MachO section names in the form SEGMENT,section. llvm-svn: 135231 --- llvm/lib/Object/MachOObjectFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Object/MachOObjectFile.cpp') 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 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 Sect; MachOObj->ReadSection(LCI, DRI.d.b, Sect); - strcpy(result, SLC->Name); + strcpy(result, Sect->SegmentName); strcat(result, ","); strcat(result, Sect->Name); } -- cgit v1.2.3