mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-08 04:11:27 +00:00
adb8197635
For Mach-O there were 2 implementations for parsing object files. A standalone llvm/Object/MachOObject.h and llvm/Object/MachO.h which implements the generic interface in llvm/Object/ObjectFile.h. This patch adds the missing features to MachO.h, moves macho-dump to use MachO.h and removes ObjectFile.h. In addition to making sure that check-all is clean, I checked that the new version produces exactly the same output in all Mach-O files in a llvm+clang build directory (including executables and shared libraries). To test the performance, I ran macho-dump over all the files in a llvm+clang build directory again, but this time redirecting the output to /dev/null. Both the old and new versions take about 4.6 seconds (2.5 user) to finish. llvm-svn: 180624
11 lines
164 B
CMake
11 lines
164 B
CMake
add_llvm_library(LLVMObject
|
|
Archive.cpp
|
|
Binary.cpp
|
|
COFFObjectFile.cpp
|
|
ELFObjectFile.cpp
|
|
Error.cpp
|
|
MachOObjectFile.cpp
|
|
Object.cpp
|
|
ObjectFile.cpp
|
|
)
|