llvm-project/llvm/lib/Object
Kevin Enderby 980b25840f Add "-format darwin" to llvm-nm to be like darwin's nm(1) -m output.
This is a first step in seeing if it is possible to make llvm-nm produce
the same output as darwin's nm(1).  Darwin's default format is bsd but its
-m output prints the longer Mach-O specific details.  For now I added the
"-format darwin" to do this (whos name may need to change in the future).
As there are other Mach-O specific flags to nm(1) which I'm hoping to add some
how in the future.  But I wanted to see if I could get the correct output for
-m flag using llvm-nm and the libObject interfaces.

I got this working but would love to hear what others think about this approach
to getting object/format specific details printed with llvm-nm.

llvm-svn: 210285
2014-06-05 21:21:57 +00:00
..
Archive.cpp Use error_code() instead of error_code::succes() 2014-05-31 01:37:45 +00:00
Binary.cpp Replace OwningPtr<T> with std::unique_ptr<T>. 2014-03-06 05:51:42 +00:00
CMakeLists.txt ELFObjectWriter: deduplicate suffices in strtab 2014-04-30 16:25:02 +00:00
COFFObjectFile.cpp [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-15 06:32:26 +00:00
COFFYAML.cpp obj2yaml: Don't crash if the characteristics field is zero 2014-04-09 16:38:15 +00:00
ELF.cpp [Mips] Add more relocation types and MIPS specific e_flags constants. 2014-05-20 09:27:49 +00:00
ELFObjectFile.cpp Replace OwningPtr<T> with std::unique_ptr<T>. 2014-03-06 05:51:42 +00:00
ELFYAML.cpp [elf2yaml][ELF] Move Info field to the RelocationSection structure. This 2014-05-29 11:05:31 +00:00
Error.cpp Use an enum class. 2014-06-03 05:26:12 +00:00
IRObjectFile.cpp Remove the linker_private and linker_private_weak linkages. 2014-03-13 23:18:37 +00:00
LLVMBuild.txt LLVMBuild.txt: Add missing dependencies. 2014-04-10 11:16:47 +00:00
MachOObjectFile.cpp Add "-format darwin" to llvm-nm to be like darwin's nm(1) -m output. 2014-06-05 21:21:57 +00:00
MachOUniversal.cpp Teach llvm-nm to know about fat archives (aka MachOUniversal files 2014-05-14 21:18:50 +00:00
Makefile
Object.cpp Convert getFileOffset to getOffset and move it to its only user. 2014-04-21 13:45:32 +00:00
ObjectFile.cpp Replace OwningPtr<T> with std::unique_ptr<T>. 2014-03-06 05:51:42 +00:00
StringTableBuilder.cpp ELFObjectWriter: deduplicate suffices in strtab 2014-04-30 16:25:02 +00:00
SymbolicFile.cpp Add a SymbolicFile interface between Binary and ObjectFile. 2014-02-21 20:10:59 +00:00
YAML.cpp Object: Don't double-escape empty hexdata 2014-03-20 06:28:52 +00:00