[PATCH] D55149: [WebAssembly] Enforce assembler emits to streamer in order.

Derek Schuff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 3 10:10:12 PST 2018


dschuff added inline comments.


================
Comment at: lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp:161
       : MCTargetAsmParser(Options, STI, MII), Parser(Parser),
-        Lexer(Parser.getLexer()) {
+        Lexer(Parser.getLexer()), CurrentState(FileStart), LastLabel(nullptr) {
     setAvailableFeatures(ComputeAvailableFeatures(STI.getFeatureBits()));
----------------
aardappel wrote:
> aheejin wrote:
> > Nit: Can we use C++11-style in-class initialization for these two variables?
> Sure.. I guess I was being conservative, not knowing what level of C++ I can use.
In LLVM, we love ALL the C++! but there's still those pesky older versions of compilers, distros, etc. see https://llvm.org/docs/CodingStandards.html#languages-libraries-and-standards . See also http://lists.llvm.org/pipermail/llvm-dev/2018-October/127045.html


Repository:
  rL LLVM

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

https://reviews.llvm.org/D55149





More information about the llvm-commits mailing list