@@ -98,6 +98,9 @@ class MCAsmInfo {
98
98
// / part of .global, .weak, .extern, and .comm. Default is false.
99
99
bool HasVisibilityOnlyWithLinkage = false ;
100
100
101
+ // True if using the HLASM dialect on z/OS.
102
+ bool IsHLASM = false ;
103
+
101
104
// / This is the maximum possible length of an instruction, which is needed to
102
105
// / compute the size of an inline asm. Defaults to 4.
103
106
unsigned MaxInstLength = 4 ;
@@ -110,14 +113,6 @@ class MCAsmInfo {
110
113
// / the current PC. Defaults to false.
111
114
bool DollarIsPC = false ;
112
115
113
- // / Allow '.' token, when not referencing an identifier or constant, to refer
114
- // / to the current PC. Defaults to true.
115
- bool DotIsPC = true ;
116
-
117
- // / Whether the '*' token refers to the current PC. This is used for the
118
- // / HLASM dialect.
119
- bool StarIsPC = false ;
120
-
121
116
// / This string, if specified, is used to separate instructions from each
122
117
// / other when on the same line. Defaults to ';'
123
118
const char *SeparatorString;
@@ -126,10 +121,6 @@ class MCAsmInfo {
126
121
// / "#"
127
122
StringRef CommentString;
128
123
129
- // / This indicates whether the comment string is only accepted as a comment
130
- // / at the beginning of statements. Defaults to false.
131
- bool RestrictCommentStringToStartOfStatement = false ;
132
-
133
124
// / This indicates whether to allow additional "comment strings" to be lexed
134
125
// / as a comment. Setting this attribute to true, will ensure that C-style
135
126
// / line comments (// ..), C-style block comments (/* .. */), and "#" are
@@ -138,16 +129,9 @@ class MCAsmInfo {
138
129
// / Default is true.
139
130
bool AllowAdditionalComments = true ;
140
131
141
- // / Should we emit the '\t' as the starting indentation marker for GNU inline
142
- // / asm statements. Defaults to true.
143
- bool EmitGNUAsmStartIndentationMarker = true ;
144
-
145
132
// / This is appended to emitted labels. Defaults to ":"
146
133
const char *LabelSuffix;
147
134
148
- // / Emit labels in purely upper case. Defaults to false.
149
- bool EmitLabelsInUpperCase = false ;
150
-
151
135
// Print the EH begin symbol with an assignment. Defaults to false.
152
136
bool UseAssignmentForEHBegin = false ;
153
137
@@ -209,13 +193,6 @@ class MCAsmInfo {
209
193
// / still be lexed as a comment.
210
194
bool AllowAtAtStartOfIdentifier = false ;
211
195
212
- // / This is true if the assembler allows the "#" character at the start of
213
- // / a string to be lexed as an AsmToken::Identifier.
214
- // / If the AsmLexer determines that the string can be lexed as a possible
215
- // / comment, setting this option will have no effect, and the string will
216
- // / still be lexed as a comment.
217
- bool AllowHashAtStartOfIdentifier = false ;
218
-
219
196
// / If this is true, symbol names with invalid characters will be printed in
220
197
// / quotes.
221
198
bool SupportsQuotedNames = true ;
@@ -590,6 +567,7 @@ class MCAsmInfo {
590
567
591
568
// Accessors.
592
569
570
+ bool isHLASM () const { return IsHLASM; }
593
571
bool isMachO () const { return HasSubsectionsViaSymbols; }
594
572
bool hasCOFFAssociativeComdats () const { return HasCOFFAssociativeComdats; }
595
573
bool hasCOFFComdatConstants () const { return HasCOFFComdatConstants; }
@@ -605,23 +583,14 @@ class MCAsmInfo {
605
583
606
584
unsigned getMinInstAlignment () const { return MinInstAlignment; }
607
585
bool getDollarIsPC () const { return DollarIsPC; }
608
- bool getDotIsPC () const { return DotIsPC; }
609
- bool getStarIsPC () const { return StarIsPC; }
610
586
const char *getSeparatorString () const { return SeparatorString; }
611
587
612
588
unsigned getCommentColumn () const { return CommentColumn; }
613
589
void setCommentColumn (unsigned Col) { CommentColumn = Col; }
614
590
615
591
StringRef getCommentString () const { return CommentString; }
616
- bool getRestrictCommentStringToStartOfStatement () const {
617
- return RestrictCommentStringToStartOfStatement;
618
- }
619
592
bool shouldAllowAdditionalComments () const { return AllowAdditionalComments; }
620
- bool getEmitGNUAsmStartIndentationMarker () const {
621
- return EmitGNUAsmStartIndentationMarker;
622
- }
623
593
const char *getLabelSuffix () const { return LabelSuffix; }
624
- bool shouldEmitLabelsInUpperCase () const { return EmitLabelsInUpperCase; }
625
594
626
595
bool useAssignmentForEHBegin () const { return UseAssignmentForEHBegin; }
627
596
bool needsLocalForSize () const { return NeedsLocalForSize; }
@@ -655,9 +624,6 @@ class MCAsmInfo {
655
624
bool doesAllowDollarAtStartOfIdentifier () const {
656
625
return AllowDollarAtStartOfIdentifier;
657
626
}
658
- bool doesAllowHashAtStartOfIdentifier () const {
659
- return AllowHashAtStartOfIdentifier;
660
- }
661
627
bool supportsNameQuoting () const { return SupportsQuotedNames; }
662
628
663
629
bool doesSupportDataRegionDirectives () const {
0 commit comments