@@ -189,11 +189,6 @@ class LLVM_LIBRARY_VISIBILITY WindowsX86_32SPIRTargetInfo
189189 : WindowsTargetInfo<SPIR32SYCLDeviceTargetInfo>(Triple, Opts) {
190190 DoubleAlign = LongLongAlign = 64 ;
191191 WCharType = UnsignedShort;
192- bool IsWinCOFF =
193- getTriple ().isOSWindows () && getTriple ().isOSBinFormatCOFF ();
194- resetDataLayout (IsWinCOFF
195- ? " e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
196- : " e-m:e-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32" );
197192 }
198193
199194 BuiltinVaListKind getBuiltinVaListKind () const override {
@@ -218,6 +213,7 @@ class LLVM_LIBRARY_VISIBILITY MicrosoftX86_32SPIRTargetInfo
218213 : WindowsX86_32SPIRTargetInfo(Triple, Opts) {
219214 LongDoubleWidth = LongDoubleAlign = 64 ;
220215 LongDoubleFormat = &llvm::APFloat::IEEEdouble ();
216+ assert (DataLayout->getPointerSizeInBits () == 32 );
221217 }
222218
223219 void getTargetDefines (const LangOptions &Opts,
@@ -245,11 +241,6 @@ class LLVM_LIBRARY_VISIBILITY WindowsX86_64_SPIR64TargetInfo
245241 PtrDiffType = SignedLongLong;
246242 IntPtrType = SignedLongLong;
247243 WCharType = UnsignedShort;
248- bool IsWinCOFF =
249- getTriple ().isOSWindows () && getTriple ().isOSBinFormatCOFF ();
250- resetDataLayout (IsWinCOFF
251- ? " e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
252- : " e-m:e-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32" );
253244 }
254245
255246 BuiltinVaListKind getBuiltinVaListKind () const override {
@@ -274,6 +265,7 @@ class LLVM_LIBRARY_VISIBILITY MicrosoftX86_64_SPIR64TargetInfo
274265 : WindowsX86_64_SPIR64TargetInfo(Triple, Opts) {
275266 LongDoubleWidth = LongDoubleAlign = 64 ;
276267 LongDoubleFormat = &llvm::APFloat::IEEEdouble ();
268+ assert (DataLayout->getPointerSizeInBits () == 64 );
277269 }
278270
279271 void getTargetDefines (const LangOptions &Opts,
0 commit comments