[PATCH] D103343: [SystemZ][z/OS] Stricter condition for HLASM class instantiation

Anirudh Prasad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 1 12:56:58 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGe52007cac4fa: [SystemZ][z/OS] Stricter condition for HLASM class instantiation (authored by anirudhp).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103343/new/

https://reviews.llvm.org/D103343

Files:
  llvm/lib/MC/MCParser/AsmParser.cpp


Index: llvm/lib/MC/MCParser/AsmParser.cpp
===================================================================
--- llvm/lib/MC/MCParser/AsmParser.cpp
+++ llvm/lib/MC/MCParser/AsmParser.cpp
@@ -6374,7 +6374,7 @@
 MCAsmParser *llvm::createMCAsmParser(SourceMgr &SM, MCContext &C,
                                      MCStreamer &Out, const MCAsmInfo &MAI,
                                      unsigned CB) {
-  if (C.getTargetTriple().isOSzOS())
+  if (C.getTargetTriple().isSystemZ() && C.getTargetTriple().isOSzOS())
     return new HLASMAsmParser(SM, C, Out, MAI, CB);
 
   return new AsmParser(SM, C, Out, MAI, CB);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103343.349075.patch
Type: text/x-patch
Size: 619 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210601/9efc4fe7/attachment.bin>


More information about the llvm-commits mailing list