[PATCH] D73469: [ARM][AsmParser] Make assembly directives case insensitive

Oliver Stannard (Linaro) via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 4 06:05:32 PST 2020


ostannard accepted this revision.
ostannard added a comment.
This revision is now accepted and ready to land.

LGTM with a few nits.



================
Comment at: llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp:10505
 
-  StringRef IDVal = DirectiveID.getIdentifier();
+  auto IDVal = DirectiveID.getIdentifier().lower();
   if (IDVal == ".word")
----------------
Don't use auto here, the type is not obvious.


================
Comment at: llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp:241
 ARMTargetAsmStreamer::AnnotateTLSDescriptorSequence(const MCSymbolRefExpr *S) {
-  OS << "\t.tlsdescseq\t" << S->getSymbol().getName();
+  OS << "\t.tlsdescseq\t" << S->getSymbol().getName() << "\n";
 }
----------------
This is unrelated, should be a separate patch.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D73469





More information about the llvm-commits mailing list