Skip to content

Commit 263018c

Browse files
committed
[MC] Drop whitespace padding in AMDGPU combined asm/disasm tests.
A follow-up from <#92895 (comment)>.
1 parent 05f6630 commit 263018c

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
@@ -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 {

0 commit comments

Comments
 (0)