From: Chris Lattner Date: Wed, 9 Sep 2009 00:14:09 +0000 (+0000) Subject: allow @ in symbol names without quoting the identifier. This X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a8bb2490aedaad123321e28d5e0a5f32c087789b;p=oota-llvm.git allow @ in symbol names without quoting the identifier. This allows things like @PLT without quotes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81296 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/MCSymbol.cpp b/lib/MC/MCSymbol.cpp index 68ab24d9523..ef58aecf33c 100644 --- a/lib/MC/MCSymbol.cpp +++ b/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;