[llvm] [MC,ELF] Emit warning if a string constant contains newline char. (PR #98060)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 03:38:44 PDT 2024


================
@@ -646,7 +646,8 @@ AsmToken AsmLexer::LexQuote() {
     return AsmToken(AsmToken::String, StringRef(TokStart, CurPtr - TokStart));
   }
 
-  // TODO: does gas allow multiline string constants?
+  // gas doesn't allow multiline string constants
+  // and emits a warning if a string constant contains newline character
----------------
s-barannikov wrote:

I guess the comment can just be removed.

https://github.com/llvm/llvm-project/pull/98060


More information about the llvm-commits mailing list