[llvm-commits] [llvm] r135231 - /llvm/trunk/lib/Object/MachOObjectFile.cpp
Benjamin Kramer
benny.kra at googlemail.com
Thu Jul 14 17:29:02 PDT 2011
Author: d0k
Date: Thu Jul 14 19:29:02 2011
New Revision: 135231
URL: http://llvm.org/viewvc/llvm-project?rev=135231&view=rev
Log:
Output MachO section names in the form SEGMENT,section.
Modified:
llvm/trunk/lib/Object/MachOObjectFile.cpp
Modified: llvm/trunk/lib/Object/MachOObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/MachOObjectFile.cpp?rev=135231&r1=135230&r2=135231&view=diff
==============================================================================
--- llvm/trunk/lib/Object/MachOObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/MachOObjectFile.cpp Thu Jul 14 19:29:02 2011
@@ -264,7 +264,7 @@
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 @@
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);
}
More information about the llvm-commits
mailing list