summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMon P Wang <wangmp@apple.com>2010-04-29 04:00:56 +0000
committerMon P Wang <wangmp@apple.com>2010-04-29 04:00:56 +0000
commitb9a01bcf486814a44098745920d43daaf9f7c260 (patch)
treefe1919c5492576c5520dbbb6597cfdf2869a2f88 /include
parent16e4ace95196c2b34246746b7481a8de3d715c19 (diff)
downloadexternal_llvm-b9a01bcf486814a44098745920d43daaf9f7c260.zip
external_llvm-b9a01bcf486814a44098745920d43daaf9f7c260.tar.gz
external_llvm-b9a01bcf486814a44098745920d43daaf9f7c260.tar.bz2
Add support for assemblers that don't support periods in a name
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102594 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCAsmInfo.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h
index 6c141a1..f57f642 100644
--- a/include/llvm/MC/MCAsmInfo.h
+++ b/include/llvm/MC/MCAsmInfo.h
@@ -97,7 +97,11 @@ namespace llvm {
/// AllowNameToStartWithDigit - This is true if the assembler allows symbol
/// names to start with a digit (e.g., "0x0021"). This defaults to false.
bool AllowNameToStartWithDigit;
-
+
+ /// AllowPeriodsInName - This is true if the assembler allows periods in
+ /// symbol names. This defaults to true.
+ bool AllowPeriodsInName;
+
//===--- Data Emission Directives -------------------------------------===//
/// ZeroDirective - this should be set to the directive used to get some
@@ -341,6 +345,9 @@ namespace llvm {
bool doesAllowNameToStartWithDigit() const {
return AllowNameToStartWithDigit;
}
+ bool doesAllowPeriodsInName() const {
+ return AllowPeriodsInName;
+ }
const char *getZeroDirective() const {
return ZeroDirective;
}