Skip to content
  1. Apr 15, 2013
    • Rafael Espindola's avatar
      Make the host endianness check an integer constant expression. · 41cb64f4
      Rafael Espindola authored
      I will remove the isBigEndianHost function once I update clang.
      
      The ifdef logic is designed to
      * not use configure/cmake to avoid breaking -arch i686 -arch ppc.
      * default to little endian
      * be as small as possible
      
      It looks like sys/endian.h is the preferred header on most modern BSD systems,
      but it is better to change this in a followup patch as machine/endian.h is
      available on FreeBSD, OpenBSD, NetBSD and OS X.
      
      llvm-svn: 179527
      41cb64f4
  2. Aug 20, 2012
  3. Feb 22, 2012
  4. Sep 13, 2011
    • Benjamin Kramer's avatar
      Add the DataExtractor utility class. · 88a1d9fc
      Benjamin Kramer authored
      It is an endian-aware helper that can read data from a StringRef. It will
      come in handy for DWARF parsing. This class is inspired by LLDB's
      DataExtractor, but is stripped down to the bare minimum needed for DWARF.
      
      Comes with unit tests!
      
      llvm-svn: 139626
      88a1d9fc
Loading