r259780 - [x86] Correct setting of WIntType for MCU target
Andrey Bokhanko via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 4 03:54:45 PST 2016
Author: asbokhan
Date: Thu Feb 4 05:54:45 2016
New Revision: 259780
URL: http://llvm.org/viewvc/llvm-project?rev=259780&view=rev
Log:
[x86] Correct setting of WIntType for MCU target
Differential Revision: http://reviews.llvm.org/D16626
Modified:
cfe/trunk/lib/Basic/Targets.cpp
cfe/trunk/test/Preprocessor/elfiamcu-predefines.c
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=259780&r1=259779&r2=259780&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Thu Feb 4 05:54:45 2016
@@ -3908,6 +3908,7 @@ public:
LongDoubleWidth = 64;
LongDoubleFormat = &llvm::APFloat::IEEEdouble;
UserLabelPrefix = "";
+ WIntType = UnsignedInt;
}
CallingConvCheckResult checkCallingConvention(CallingConv CC) const override {
Modified: cfe/trunk/test/Preprocessor/elfiamcu-predefines.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/elfiamcu-predefines.c?rev=259780&r1=259779&r2=259780&view=diff
==============================================================================
--- cfe/trunk/test/Preprocessor/elfiamcu-predefines.c (original)
+++ cfe/trunk/test/Preprocessor/elfiamcu-predefines.c Thu Feb 4 05:54:45 2016
@@ -1,6 +1,7 @@
// RUN: %clang_cc1 -E -dM -triple i586-intel-elfiamcu | FileCheck %s
// CHECK: #define __USER_LABEL_PREFIX__ {{$}}
+// CHECK: #define __WINT_TYPE__ unsigned int
// CHECK: #define __iamcu
// CHECK: #define __iamcu__
More information about the cfe-commits
mailing list