<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 03/30/2013 12:42 AM, Jan Tlatlik
wrote:<br>
</div>
<blockquote cite="mid:515626EA.1060905@techfak.uni-bielefeld.de"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<blockquote cite="mid:5155B03D.1020206@techfak.uni-bielefeld.de"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hey,<br>
<br>
I have an odd problem with printing prefixed global symbols in
my AsmPrinter.<br>
<br>
In my MCAsmInfo subclass implementation, I set <br>
<br>
<blockquote>GlobalPrefix = "%";<br>
</blockquote>
<br>
because my assembler needs this to avoid name collisions.<br>
Now, whenever a global symbol (be it a label, mbb operand ,etc.)
gets printed, it is encapsulated in quotes.<br>
With other chars than '%' everything is okay...<br>
<br>
I also explicitly set AllowQuotesInName = false (which should be
the default).<br>
<br>
</blockquote>
</blockquote>
Okay, I managed to find out that in MCSymbol all symbol names with
chars containting not one of the following get quoted (independently
of the AllowQuotesInName setting):<br>
<br>
static bool isAcceptableChar(char C) {<br>
if ((C < 'a' || C > 'z') &&<br>
(C < 'A' || C > 'Z') &&<br>
(C < '0' || C > '9') &&<br>
C != '_' && C != '$' && C != '.' && C
!= '@')<br>
return false;<br>
return true;<br>
}<br>
<br>
If I add C!='%' there, it works fine for me. But, isn't there any
way to do this in a target-only manner, like overriding that
existing implementation in a subclass?<br>
<br>
Jan<br>
</body>
</html>