diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-12 08:04:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-12 08:04:33 +0000 |
commit | 0fb5bbd4010e4df7c83c1c0df951cfc8dbb3e80c (patch) | |
tree | 42bc59fbbbca52b8ca111f205ed3da45ab65022b /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | eb9acbfb0522f4f69f1a11e47ebeda7f1a61e1df (diff) | |
download | bcm5719-llvm-0fb5bbd4010e4df7c83c1c0df951cfc8dbb3e80c.tar.gz bcm5719-llvm-0fb5bbd4010e4df7c83c1c0df951cfc8dbb3e80c.zip |
do not store wchar/char16/char32/intmax width/alignment info
into TargetInfo, just derive this based on the underlying type.
This prevents them from getting out of synch, patch by Ken Dyck!
llvm-svn: 86976
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r-- | clang/lib/Frontend/InitPreprocessor.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp index 462e065e8c1..f6e60589089 100644 --- a/clang/lib/Frontend/InitPreprocessor.cpp +++ b/clang/lib/Frontend/InitPreprocessor.cpp @@ -364,11 +364,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI, DefineTypeSize("__INT_MAX__", TargetInfo::SignedInt, TI, Buf); DefineTypeSize("__LONG_MAX__", TargetInfo::SignedLong, TI, Buf); DefineTypeSize("__LONG_LONG_MAX__", TargetInfo::SignedLongLong, TI, Buf); - // FIXME: TI.getWCharWidth() and TI.getTypeWidth(TI.getWCharType()) return - // different values on PIC16 and MSP430. TargetInfo needs to be corrected - // and the following line substituted for the one below it. - // DefineTypeSize("__WCHAR_MAX__", TI.getWCharType(), TI, Buf); - DefineTypeSize("__WCHAR_MAX__", TI.getWCharWidth(), "", true, Buf); + DefineTypeSize("__WCHAR_MAX__", TI.getWCharType(), TI, Buf); DefineTypeSize("__INTMAX_MAX__", TI.getIntMaxType(), TI, Buf); DefineType("__INTMAX_TYPE__", TI.getIntMaxType(), Buf); |