diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-09-09 00:14:09 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-09-09 00:14:09 +0000 |
| commit | cada1c1012737b46334ec5f35c98ef834108b04d (patch) | |
| tree | 836219300fa8b7f1ab0d11d14923a94c4ac568f0 /llvm/lib/MC/MCSymbol.cpp | |
| parent | ea819607986f6e8298d6be729a7056fcef963780 (diff) | |
| download | bcm5719-llvm-cada1c1012737b46334ec5f35c98ef834108b04d.tar.gz bcm5719-llvm-cada1c1012737b46334ec5f35c98ef834108b04d.zip | |
allow @ in symbol names without quoting the identifier. This
allows things like @PLT without quotes.
llvm-svn: 81296
Diffstat (limited to 'llvm/lib/MC/MCSymbol.cpp')
| -rw-r--r-- | llvm/lib/MC/MCSymbol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCSymbol.cpp b/llvm/lib/MC/MCSymbol.cpp index 68ab24d9523..ef58aecf33c 100644 --- a/llvm/lib/MC/MCSymbol.cpp +++ b/llvm/lib/MC/MCSymbol.cpp @@ -39,7 +39,7 @@ static bool ShouldQuoteIdentifier(const StringRef &Str, const MCAsmInfo &MAI) { if ((C < 'a' || C > 'z') && (C < 'A' || C > 'Z') && (C < '0' || C > '9') && - C != '_' && C != '$' && C != '.') + C != '_' && C != '$' && C != '.' && C != '@') return true; } return false; |

