[PATCH] [lld] [MachO] Begin to flesh out normalizedToAtoms

Joey Gouly joey.gouly at gmail.com
Tue Dec 24 04:40:38 PST 2013


  I changed NormalizedFile to use a std::vector<uint8_t>, and in the YAML reader/writer I used the MappingNormalization to convert between uint8_t and Hex8. It avoids copying data in the usual use case, and only copies it for YAML reading/writing.

  I also added MachOFile, so the Atoms can be allocated somewhere.

Hi kledzik,

http://llvm-reviews.chandlerc.com/D2464

CHANGE SINCE LAST DIFF
  http://llvm-reviews.chandlerc.com/D2464?vs=6245&id=6266#toc

Files:
  lib/ReaderWriter/MachO/Atoms.h
  lib/ReaderWriter/MachO/CMakeLists.txt
  lib/ReaderWriter/MachO/File.h
  lib/ReaderWriter/MachO/MachONormalizedFile.h
  lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
  lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
  lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp
  unittests/MachOTests/CMakeLists.txt
  unittests/MachOTests/MachONormalizedFileToAtomsTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2464.2.patch
Type: text/x-patch
Size: 10633 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131224/8c5a567f/attachment.bin>


More information about the llvm-commits mailing list