[llvm] r219945 - [llvm-objdump] Fix -private-headers for mach-o to print all LC_*_DYLIB variants
Nick Kledzik
kledzik at apple.com
Fri Oct 17 19:01:47 PDT 2014
Done in r220120
-Nick
On Oct 17, 2014, at 1:09 PM, Rafael EspĂndola <rafael.espindola at gmail.com> wrote:
> testcase?
>
> On 16 October 2014 14:58, Nick Kledzik <kledzik at apple.com> wrote:
>> Author: kledzik
>> Date: Thu Oct 16 13:58:20 2014
>> New Revision: 219945
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=219945&view=rev
>> Log:
>> [llvm-objdump] Fix -private-headers for mach-o to print all LC_*_DYLIB variants
>>
>> Modified:
>> llvm/trunk/tools/llvm-objdump/MachODump.cpp
>>
>> Modified: llvm/trunk/tools/llvm-objdump/MachODump.cpp
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objdump/MachODump.cpp?rev=219945&r1=219944&r2=219945&view=diff
>> ==============================================================================
>> --- llvm/trunk/tools/llvm-objdump/MachODump.cpp (original)
>> +++ llvm/trunk/tools/llvm-objdump/MachODump.cpp Thu Oct 16 13:58:20 2014
>> @@ -2566,7 +2566,12 @@ static void PrintLoadCommands(const Mach
>> } else if (Command.C.cmd == MachO::LC_MAIN) {
>> MachO::entry_point_command Ep = Obj->getEntryPointCommand(Command);
>> PrintEntryPointCommand(Ep);
>> - } else if (Command.C.cmd == MachO::LC_LOAD_DYLIB) {
>> + } else if (Command.C.cmd == MachO::LC_LOAD_DYLIB ||
>> + Command.C.cmd == MachO::LC_ID_DYLIB ||
>> + Command.C.cmd == MachO::LC_LOAD_WEAK_DYLIB ||
>> + Command.C.cmd == MachO::LC_REEXPORT_DYLIB ||
>> + Command.C.cmd == MachO::LC_LAZY_LOAD_DYLIB ||
>> + Command.C.cmd == MachO::LC_LOAD_UPWARD_DYLIB) {
>> MachO::dylib_command Dl = Obj->getDylibIDLoadCommand(Command);
>> PrintDylibCommand(Dl, Command.Ptr);
>> } else if (Command.C.cmd == MachO::LC_CODE_SIGNATURE ||
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list