diff options
| author | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-08-08 16:09:12 +0000 | 
|---|---|---|
| committer | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-08-08 16:09:12 +0000 | 
| commit | c0cebeddb2014733a01d0af0624d489af8fa017b (patch) | |
| tree | 33150c1ee8f38fd83134ce3eb282eced70108238 /clang/lib | |
| parent | f2bac60f74699646640a1d5bd5137584c38aa73d (diff) | |
| download | bcm5719-llvm-c0cebeddb2014733a01d0af0624d489af8fa017b.tar.gz bcm5719-llvm-c0cebeddb2014733a01d0af0624d489af8fa017b.zip | |
Frontend: further document __BYTE_ORDER__
llvm-svn: 161494
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Frontend/InitPreprocessor.cpp | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp index e8ae8e3120c..6b9965ed608 100644 --- a/clang/lib/Frontend/InitPreprocessor.cpp +++ b/clang/lib/Frontend/InitPreprocessor.cpp @@ -445,7 +445,9 @@ static void InitializePredefinedMacros(const TargetInfo &TI,    // Initialize target-specific preprocessor defines. -  // __BYTE_ORDER__ was added in GCC 4.6. +  // __BYTE_ORDER__ was added in GCC 4.6. It's analogous +  // to the macro __BYTE_ORDER (no trailing underscores) +  // from glibc's <endian.h> header.    // We don't support the PDP-11 as a target, but include    // the define so it can still be compared against.    Builder.defineMacro("__ORDER_LITTLE_ENDIAN__", "1234"); | 

