]> granicus.if.org Git - clang/commitdiff
Remove __WCHAR_UNSIGNED__ and anything that used it.
authorEric Christopher <echristo@apple.com>
Tue, 20 Sep 2011 18:05:01 +0000 (18:05 +0000)
committerEric Christopher <echristo@apple.com>
Tue, 20 Sep 2011 18:05:01 +0000 (18:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140155 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/InitPreprocessor.cpp
test/Headers/wchar_limits.cpp

index 0f6e40ad28c17edb930f046501b3a583a5ef9aff..ae3152a5b06c29cc5baad63a2397ace45feb316c 100644 (file)
@@ -556,9 +556,6 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
   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");
index 5245f31d4c385696280e8bb9185b92ec5e59fa26..93a99ad78f2bca6b548c7fe34f122348d53c0279 100644 (file)
@@ -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)];