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 | 98d648dc6c48b4a9cc0d8126ec22d10ccf51813e (patch) | |
tree | 8ddd69b2cd8a745ac30206f90e8d749a443b0946 | |
parent | 6b3593ac463ad21559e0097a268888c79e4e403e (diff) | |
download | external_llvm-98d648dc6c48b4a9cc0d8126ec22d10ccf51813e.zip external_llvm-98d648dc6c48b4a9cc0d8126ec22d10ccf51813e.tar.gz external_llvm-98d648dc6c48b4a9cc0d8126ec22d10ccf51813e.tar.bz2 |
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
-rw-r--r-- | lib/MC/MCSymbol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCSymbol.cpp b/lib/MC/MCSymbol.cpp index 68ab24d..ef58aec 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; |