diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-16 07:04:11 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-16 07:04:11 +0000 |
| commit | f69b850d60b23f6522579fb4fec3cea8e1776ce5 (patch) | |
| tree | 6554cdf946fb42a44d9fc269423ab5f900e1eaf9 /llvm | |
| parent | cb2ae8d8f73223b1f0973fa2664f74adb7c84b81 (diff) | |
| download | bcm5719-llvm-f69b850d60b23f6522579fb4fec3cea8e1776ce5.tar.gz bcm5719-llvm-f69b850d60b23f6522579fb4fec3cea8e1776ce5.zip | |
CommentColumn is always 40. Simplify.
llvm-svn: 199357
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/MC/MCAsmInfo.h | 10 | ||||
| -rw-r--r-- | llvm/lib/MC/MCAsmInfo.cpp | 1 | ||||
| -rw-r--r-- | llvm/lib/Target/R600/MCTargetDesc/AMDGPUMCAsmInfo.cpp | 1 |
3 files changed, 5 insertions, 7 deletions
diff --git a/llvm/include/llvm/MC/MCAsmInfo.h b/llvm/include/llvm/MC/MCAsmInfo.h index 0d1052be6d8..d3f48660ab0 100644 --- a/llvm/include/llvm/MC/MCAsmInfo.h +++ b/llvm/include/llvm/MC/MCAsmInfo.h @@ -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; } diff --git a/llvm/lib/MC/MCAsmInfo.cpp b/llvm/lib/MC/MCAsmInfo.cpp index 2c19e8511b3..e43b80923c1 100644 --- a/llvm/lib/MC/MCAsmInfo.cpp +++ b/llvm/lib/MC/MCAsmInfo.cpp @@ -37,7 +37,6 @@ MCAsmInfo::MCAsmInfo() { MinInstAlignment = 1; DollarIsPC = false; SeparatorString = ";"; - CommentColumn = 40; CommentString = "#"; LabelSuffix = ":"; DebugLabelSuffix = ":"; diff --git a/llvm/lib/Target/R600/MCTargetDesc/AMDGPUMCAsmInfo.cpp b/llvm/lib/Target/R600/MCTargetDesc/AMDGPUMCAsmInfo.cpp index 227da41ebdc..f4dec13283a 100644 --- a/llvm/lib/Target/R600/MCTargetDesc/AMDGPUMCAsmInfo.cpp +++ b/llvm/lib/Target/R600/MCTargetDesc/AMDGPUMCAsmInfo.cpp @@ -21,7 +21,6 @@ AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(StringRef &TT) : MCAsmInfo() { LinkerRequiresNonEmptyDwarfLines = true; MaxInstLength = 16; SeparatorString = "\n"; - CommentColumn = 40; CommentString = ";"; LabelSuffix = ":"; InlineAsmStart = ";#ASMSTART"; |

