diff options
Diffstat (limited to 'include/llvm/Target/TargetAsmInfo.h')
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 6cdb7cc..a89b906 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -222,6 +222,14 @@ namespace llvm { /// assembler. const char *CommentString; // Defaults to "#" + /// FirstOperandColumn - The output column where the first operand + /// should be printed + unsigned FirstOperandColumn; // Defaults to 0 (ignored) + + /// MaxOperandLength - The maximum length of any printed asm + /// operand + unsigned MaxOperandLength; // Defaults to 0 (ignored) + /// GlobalPrefix - If this is set to a non-empty string, it is prepended /// onto all global symbols. This is often used for "_" or ".". const char *GlobalPrefix; // Defaults to "" @@ -691,6 +699,9 @@ namespace llvm { const char *getCommentString() const { return CommentString; } + unsigned getOperandColumn(int operand) const { + return FirstOperandColumn + (MaxOperandLength+1)*(operand-1); + } const char *getGlobalPrefix() const { return GlobalPrefix; } |