From 0bad85de10d5415395cb627c5981e1a7b7346de7 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 23 Apr 2015 23:34:05 +0000 Subject: MC: Allow targets to stop symbol name quoting Currently symbol names are printed in quotes if it contains something outside of the arbitrary set of characters that isAcceptableChar tests for. On somem targets, it is never OK to print a symbol name in quotes so allow targets to opt out of this behavior. llvm-svn: 235670 --- llvm/lib/MC/MCSymbol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/MC/MCSymbol.cpp') diff --git a/llvm/lib/MC/MCSymbol.cpp b/llvm/lib/MC/MCSymbol.cpp index ccb9f8def9e..346a9260709 100644 --- a/llvm/lib/MC/MCSymbol.cpp +++ b/llvm/lib/MC/MCSymbol.cpp @@ -51,7 +51,7 @@ void MCSymbol::print(raw_ostream &OS) const { // some targets support quoting names with funny characters. If the name // contains a funny character, then print it quoted. StringRef Name = getName(); - if (!NameNeedsQuoting(Name)) { + if (NoQuoting || !NameNeedsQuoting(Name)) { OS << Name; return; } -- cgit v1.2.3