diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-09-18 16:57:42 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-09-18 16:57:42 +0000 |
commit | c6f729ed5519cdf398ca4039dbdbea4f81433ec0 (patch) | |
tree | 869948d5bfd5d30bb4d55c7ee8a7a82b23d650f2 /include/llvm/MC/MCAsmInfo.h | |
parent | 7de3bd273ec3f4f027089285106095e8700e226d (diff) | |
download | external_llvm-c6f729ed5519cdf398ca4039dbdbea4f81433ec0.zip external_llvm-c6f729ed5519cdf398ca4039dbdbea4f81433ec0.tar.gz external_llvm-c6f729ed5519cdf398ca4039dbdbea4f81433ec0.tar.bz2 |
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
Diffstat (limited to 'include/llvm/MC/MCAsmInfo.h')
-rw-r--r-- | include/llvm/MC/MCAsmInfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h index 98e43a3..fb69630 100644 --- a/include/llvm/MC/MCAsmInfo.h +++ b/include/llvm/MC/MCAsmInfo.h @@ -95,6 +95,10 @@ namespace llvm { /// AllowQuotesInName - This is true if the assembler allows for complex /// symbol names to be surrounded in quotes. This defaults to false. bool AllowQuotesInName; + + /// AllowNameToStartWithDigit - This is true if the assembler allows symbol + /// names to start with a digit (e.g., "0x0021"). This defaults to false. + bool AllowNameToStartWithDigit; //===--- Data Emission Directives -------------------------------------===// @@ -354,6 +358,9 @@ namespace llvm { bool doesAllowQuotesInName() const { return AllowQuotesInName; } + bool doesAllowNameToStartWithDigit() const { + return AllowNameToStartWithDigit; + } const char *getZeroDirective() const { return ZeroDirective; } |