aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorDylan Noblesmith <nobled@dreamwidth.org>2012-08-08 16:09:12 +0000
committerDylan Noblesmith <nobled@dreamwidth.org>2012-08-08 16:09:12 +0000
commit5aeda88995fd98d55f3c565a108196e2b0df16ed (patch)
tree510012c4622f7ae502ab5ea955b857e9e57e06e2 /lib/Frontend/InitPreprocessor.cpp
parentfbffb5f91e34c4c455cdeb9d4331b128f9511a48 (diff)
Frontend: further document __BYTE_ORDER__
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161494 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/InitPreprocessor.cpp')
-rw-r--r--lib/Frontend/InitPreprocessor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Frontend/InitPreprocessor.cpp b/lib/Frontend/InitPreprocessor.cpp
index e8ae8e3120..6b9965ed60 100644
--- a/lib/Frontend/InitPreprocessor.cpp
+++ b/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");