File tree Expand file tree Collapse file tree 3 files changed +1204
-1197
lines changed Expand file tree Collapse file tree 3 files changed +1204
-1197
lines changed Original file line number Diff line number Diff line change @@ -524,6 +524,9 @@ class MCAsmInfo {
524524 // / Preserve Comments in assembly
525525 bool PreserveAsmComments;
526526
527+ // / The column (zero-based) at which asm comments should be printed.
528+ unsigned CommentColumn = 40 ;
529+
527530 // / True if the integrated assembler should interpret 'a >> b' constant
528531 // / expressions as logical rather than arithmetic.
529532 bool UseLogicalShr = true ;
@@ -638,9 +641,8 @@ class MCAsmInfo {
638641 bool getStarIsPC () const { return StarIsPC; }
639642 const char *getSeparatorString () const { return SeparatorString; }
640643
641- // / This indicates the column (zero-based) at which asm comments should be
642- // / printed.
643- unsigned getCommentColumn () const { return 40 ; }
644+ unsigned getCommentColumn () const { return CommentColumn; }
645+ void setCommentColumn (unsigned Col) { CommentColumn = Col; }
644646
645647 StringRef getCommentString () const { return CommentString; }
646648 bool getRestrictCommentStringToStartOfStatement () const {
You can’t perform that action at this time.
0 commit comments