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 | 592638ae05d06aed2752d919d4bb520a202e0596 (patch) | |
| tree | acee09ca34534bf5669573d19e34226238d56161 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
| parent | bf4c56d82b1fef3eae36d4acb43aea296e9e464c (diff) | |
| download | bcm5719-llvm-592638ae05d06aed2752d919d4bb520a202e0596.tar.gz bcm5719-llvm-592638ae05d06aed2752d919d4bb520a202e0596.zip | |
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.
llvm-svn: 82227
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 6a9428737fa..e29bff5f66a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -106,6 +106,9 @@ bool AsmPrinter::doInitialization(Module &M) { if (MAI->doesAllowQuotesInName()) Mang->setUseQuotes(true); + + if (MAI->doesAllowNameToStartWithDigit()) + Mang->setSymbolsCanStartWithDigit(true); GCModuleInfo *MI = getAnalysisIfAvailable<GCModuleInfo>(); assert(MI && "AsmPrinter didn't require GCModuleInfo?"); |

