ARMAsmBackend.cpp: Use Triple::isOSBinFormatCOFF() instead of isOSWindows().
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 11 Jun 2013 06:52:43 +0000 (06:52 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 11 Jun 2013 06:52:43 +0000 (06:52 +0000)
FYI, isOSBinFormatCOFF() is as same as isOSWindows(), on trunk.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183727 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp

index 5ef9314db217807f58a97ba2655c7e24f5606beb..2488b6bf0c870a470931b2af03887ddd88abc45a 100644 (file)
@@ -680,7 +680,7 @@ MCAsmBackend *llvm::createARMAsmBackend(const Target &T, StringRef TT, StringRef
     return new DarwinARMAsmBackend(T, TT, CS);
   }
 
-  if (TheTriple.isOSWindows())
+  if (TheTriple.isOSBinFormatCOFF())
     assert(0 && "Windows not supported on ARM");
 
   uint8_t OSABI = MCELFObjectTargetWriter::getOSABI(Triple(TT).getOS());