[PATCH] D72303: [BranchAlign] Compiler support for suppressing branch align

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 7 16:00:35 PST 2020


reames marked an inline comment as done.
reames added inline comments.


================
Comment at: llvm/lib/MC/MCAsmStreamer.cpp:80
         InstPrinter->setCommentStream(CommentStream);
+    setAllowAutoPadding(Assembler->getBackend().allowAutoPadding());
   }
----------------
MaskRay wrote:
> Some targets (XCore) do not have a MCAsmBackend (Target::hasMCAsmBackend() is false).
> 
> Assembler->getBackend() cannot be called.
> 
> Check `test/MC/Disassembler/XCore/xcore.txt`
Oy, will make the call conditionally.  


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

https://reviews.llvm.org/D72303





More information about the llvm-commits mailing list