[cfe-commits] r140155 - in /cfe/trunk: lib/Frontend/InitPreprocessor.cpp test/Headers/wchar_limits.cpp
Eric Christopher
echristo at apple.com
Tue Sep 20 11:05:01 PDT 2011
Author: echristo
Date: Tue Sep 20 13:05:01 2011
New Revision: 140155
URL: http://llvm.org/viewvc/llvm-project?rev=140155&view=rev
Log:
Remove __WCHAR_UNSIGNED__ and anything that used it.
Modified:
cfe/trunk/lib/Frontend/InitPreprocessor.cpp
cfe/trunk/test/Headers/wchar_limits.cpp
Modified: cfe/trunk/lib/Frontend/InitPreprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitPreprocessor.cpp?rev=140155&r1=140154&r2=140155&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/InitPreprocessor.cpp (original)
+++ cfe/trunk/lib/Frontend/InitPreprocessor.cpp Tue Sep 20 13:05:01 2011
@@ -556,9 +556,6 @@
if (!TargetInfo::isTypeSigned(TI.getWIntType()))
Builder.defineMacro("__WINT_UNSIGNED__");
- if (!TargetInfo::isTypeSigned(TI.getWCharType()))
- Builder.defineMacro("__WCHAR_UNSIGNED__");
-
// Define exact-width integer types for stdint.h
Builder.defineMacro("__INT" + Twine(TI.getCharWidth()) + "_TYPE__",
"char");
Modified: cfe/trunk/test/Headers/wchar_limits.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/wchar_limits.cpp?rev=140155&r1=140154&r2=140155&view=diff
==============================================================================
--- cfe/trunk/test/Headers/wchar_limits.cpp (original)
+++ cfe/trunk/test/Headers/wchar_limits.cpp Tue Sep 20 13:05:01 2011
@@ -5,11 +5,5 @@
const bool swchar = (wchar_t)-1 > (wchar_t)0;
-#ifdef __WCHAR_UNSIGNED__
-int signed_test[!swchar];
-#else
-int signed_test[swchar];
-#endif
-
int max_test[WCHAR_MAX == (swchar ? -(WCHAR_MIN+1) : (wchar_t)-1)];
int min_test[WCHAR_MIN == (swchar ? 0 : -WCHAR_MAX-1)];
More information about the cfe-commits
mailing list