CommentColumn is always 40. Simplify.

llvm-svn: 199357
This commit is contained in:
Rafael Espindola 2014-01-16 07:04:11 +00:00
parent cb2ae8d8f7
commit f69b850d60
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";