CommentColumn is always 40. Simplify.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199357 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2014-01-16 07:04:11 +00:00
parent 23262fb8a0
commit 9dcfdf61a8
3 changed files with 5 additions and 7 deletions

View File

@ -101,10 +101,6 @@ namespace llvm {
/// instructions from each other when on the same line.
const char *SeparatorString; // Defaults to ';'
/// CommentColumn - This indicates the comment num (zero-based) at
/// which asm comments should be printed.
unsigned CommentColumn; // Defaults to 40
/// CommentString - This indicates the comment character used by the
/// assembler.
const char *CommentString; // Defaults to "#"
@ -407,9 +403,13 @@ namespace llvm {
const char *getSeparatorString() const {
return SeparatorString;
}
/// This indicates the column (zero-based) at which asm comments should be
/// printed.
unsigned getCommentColumn() const {
return CommentColumn;
return 40;
}
const char *getCommentString() const {
return CommentString;
}

View File

@ -37,7 +37,6 @@ MCAsmInfo::MCAsmInfo() {
MinInstAlignment = 1;
DollarIsPC = false;
SeparatorString = ";";
CommentColumn = 40;
CommentString = "#";
LabelSuffix = ":";
DebugLabelSuffix = ":";

View File

@ -21,7 +21,6 @@ AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(StringRef &TT) : MCAsmInfo() {
LinkerRequiresNonEmptyDwarfLines = true;
MaxInstLength = 16;
SeparatorString = "\n";
CommentColumn = 40;
CommentString = ";";
LabelSuffix = ":";
InlineAsmStart = ";#ASMSTART";