@@ -98,6 +98,9 @@ class MCAsmInfo {
9898 // / part of .global, .weak, .extern, and .comm. Default is false.
9999 bool HasVisibilityOnlyWithLinkage = false ;
100100
101+ // True if using the HLASM dialect on z/OS.
102+ bool IsHLASM = false ;
103+
101104 // / This is the maximum possible length of an instruction, which is needed to
102105 // / compute the size of an inline asm. Defaults to 4.
103106 unsigned MaxInstLength = 4 ;
@@ -110,14 +113,6 @@ class MCAsmInfo {
110113 // / the current PC. Defaults to false.
111114 bool DollarIsPC = false ;
112115
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-
121116 // / This string, if specified, is used to separate instructions from each
122117 // / other when on the same line. Defaults to ';'
123118 const char *SeparatorString;
@@ -126,10 +121,6 @@ class MCAsmInfo {
126121 // / "#"
127122 StringRef CommentString;
128123
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-
133124 // / This indicates whether to allow additional "comment strings" to be lexed
134125 // / as a comment. Setting this attribute to true, will ensure that C-style
135126 // / line comments (// ..), C-style block comments (/* .. */), and "#" are
@@ -138,16 +129,9 @@ class MCAsmInfo {
138129 // / Default is true.
139130 bool AllowAdditionalComments = true ;
140131
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-
145132 // / This is appended to emitted labels. Defaults to ":"
146133 const char *LabelSuffix;
147134
148- // / Emit labels in purely upper case. Defaults to false.
149- bool EmitLabelsInUpperCase = false ;
150-
151135 // Print the EH begin symbol with an assignment. Defaults to false.
152136 bool UseAssignmentForEHBegin = false ;
153137
@@ -209,13 +193,6 @@ class MCAsmInfo {
209193 // / still be lexed as a comment.
210194 bool AllowAtAtStartOfIdentifier = false ;
211195
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-
219196 // / If this is true, symbol names with invalid characters will be printed in
220197 // / quotes.
221198 bool SupportsQuotedNames = true ;
@@ -590,6 +567,7 @@ class MCAsmInfo {
590567
591568 // Accessors.
592569
570+ bool isHLASM () const { return IsHLASM; }
593571 bool isMachO () const { return HasSubsectionsViaSymbols; }
594572 bool hasCOFFAssociativeComdats () const { return HasCOFFAssociativeComdats; }
595573 bool hasCOFFComdatConstants () const { return HasCOFFComdatConstants; }
@@ -605,23 +583,14 @@ class MCAsmInfo {
605583
606584 unsigned getMinInstAlignment () const { return MinInstAlignment; }
607585 bool getDollarIsPC () const { return DollarIsPC; }
608- bool getDotIsPC () const { return DotIsPC; }
609- bool getStarIsPC () const { return StarIsPC; }
610586 const char *getSeparatorString () const { return SeparatorString; }
611587
612588 unsigned getCommentColumn () const { return CommentColumn; }
613589 void setCommentColumn (unsigned Col) { CommentColumn = Col; }
614590
615591 StringRef getCommentString () const { return CommentString; }
616- bool getRestrictCommentStringToStartOfStatement () const {
617- return RestrictCommentStringToStartOfStatement;
618- }
619592 bool shouldAllowAdditionalComments () const { return AllowAdditionalComments; }
620- bool getEmitGNUAsmStartIndentationMarker () const {
621- return EmitGNUAsmStartIndentationMarker;
622- }
623593 const char *getLabelSuffix () const { return LabelSuffix; }
624- bool shouldEmitLabelsInUpperCase () const { return EmitLabelsInUpperCase; }
625594
626595 bool useAssignmentForEHBegin () const { return UseAssignmentForEHBegin; }
627596 bool needsLocalForSize () const { return NeedsLocalForSize; }
@@ -655,9 +624,6 @@ class MCAsmInfo {
655624 bool doesAllowDollarAtStartOfIdentifier () const {
656625 return AllowDollarAtStartOfIdentifier;
657626 }
658- bool doesAllowHashAtStartOfIdentifier () const {
659- return AllowHashAtStartOfIdentifier;
660- }
661627 bool supportsNameQuoting () const { return SupportsQuotedNames; }
662628
663629 bool doesSupportDataRegionDirectives () const {
0 commit comments