[PATCH] D45164: [MC] Change AsmParser to leverage Assembler during evaluation

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 2 10:23:40 PDT 2018


rnk added a comment.

> This can most easily be resolved by folding the MCAsmStreamer and MCObjectStreamer together which is planned for in a separate patch.

So, basically, gas directives allow the user to do a lot of reflection. In order to support that reflection, we need to lay out an object file, regardless of whether we're emitting textual assembly or an object.

I checked, and this doesn't appear to affect users of -fno-integrated-as, because the AsmPrinter will bypass the MCStreamer API when that flag is set.


Repository:
  rL LLVM

https://reviews.llvm.org/D45164





More information about the llvm-commits mailing list