summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-06 18:20:57 +0000
committerChris Lattner <sabre@nondot.org>2009-02-06 18:20:57 +0000
commita31829b5bcc6d5bbcc486639c91f56cf5be2cf91 (patch)
tree39349e966d8dc2263752d280b4585d616a52198a /clang/lib/Lex/Preprocessor.cpp
parentcd2cd9f5d7b971bb4e4746852f3aea4644850d14 (diff)
downloadbcm5719-llvm-a31829b5bcc6d5bbcc486639c91f56cf5be2cf91.tar.gz
bcm5719-llvm-a31829b5bcc6d5bbcc486639c91f56cf5be2cf91.zip
-funsigned-char sets __CHAR_UNSIGNED__
llvm-svn: 63942
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r--clang/lib/Lex/Preprocessor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp
index 984cf1aab82..f4f3a0bfb6c 100644
--- a/clang/lib/Lex/Preprocessor.cpp
+++ b/clang/lib/Lex/Preprocessor.cpp
@@ -572,6 +572,9 @@ static void InitializePredefinedMacros(Preprocessor &PP,
DefineBuiltinMacro(Buf, MacroBuf);
}
+ if (!TI.isCharSigned())
+ DefineBuiltinMacro(Buf, "__CHAR_UNSIGNED__");
+
// Build configuration options. FIXME: these should be controlled by
// command line options or something.
DefineBuiltinMacro(Buf, "__DYNAMIC__=1");
OpenPOWER on IntegriCloud