Skip to content

Commit 808933f

Browse files
authored
[MC] Drop whitespace padding in AMDGPU combined asm/disasm tests. (#104433)
A follow-up from <#92895 (comment)>.
1 parent 0e4f7c7 commit 808933f

File tree

3 files changed

+1204
-1197
lines changed

3 files changed

+1204
-1197
lines changed

llvm/include/llvm/MC/MCAsmInfo.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,9 @@ class MCAsmInfo {
493493
/// Preserve Comments in assembly
494494
bool PreserveAsmComments;
495495

496+
/// The column (zero-based) at which asm comments should be printed.
497+
unsigned CommentColumn = 40;
498+
496499
/// True if the integrated assembler should interpret 'a >> b' constant
497500
/// expressions as logical rather than arithmetic.
498501
bool UseLogicalShr = true;
@@ -606,9 +609,8 @@ class MCAsmInfo {
606609
bool getStarIsPC() const { return StarIsPC; }
607610
const char *getSeparatorString() const { return SeparatorString; }
608611

609-
/// This indicates the column (zero-based) at which asm comments should be
610-
/// printed.
611-
unsigned getCommentColumn() const { return 40; }
612+
unsigned getCommentColumn() const { return CommentColumn; }
613+
void setCommentColumn(unsigned Col) { CommentColumn = Col; }
612614

613615
StringRef getCommentString() const { return CommentString; }
614616
bool getRestrictCommentStringToStartOfStatement() const {

0 commit comments

Comments
 (0)