mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
Allow symbols to start from the digit if target requests it. This allows, e.g. pinning
variables to specified absolute address. Make use of this feature for MSP430. This unbreaks PR4776. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82227 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -47,8 +47,9 @@ std::string Mangler::makeNameProper(const std::string &X,
|
||||
++I; // Skip over the marker.
|
||||
}
|
||||
|
||||
// Mangle the first letter specially, don't allow numbers.
|
||||
if (*I >= '0' && *I <= '9')
|
||||
// Mangle the first letter specially, don't allow numbers unless the target
|
||||
// explicitly allows them.
|
||||
if (!SymbolsCanStartWithDigit && *I >= '0' && *I <= '9')
|
||||
Result += MangleLetter(*I++);
|
||||
|
||||
for (std::string::const_iterator E = X.end(); I != E; ++I) {
|
||||
|
Reference in New Issue
Block a user