summaryrefslogtreecommitdiff
path: root/include/llvm/MC
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-10-22 19:50:35 +0000
committerChad Rosier <mcrosier@apple.com>2012-10-22 19:50:35 +0000
commita703fb9e5e86ed29f7334736f7c085ec81a2006f (patch)
tree584bca11bbfbd7b8548e668e41f0bfcbd8ab0f98 /include/llvm/MC
parent6a02bbcdae9996a984ccb2497cb89719a69413ef (diff)
downloadllvm-a703fb9e5e86ed29f7334736f7c085ec81a2006f.tar.gz
llvm-a703fb9e5e86ed29f7334736f7c085ec81a2006f.tar.bz2
llvm-a703fb9e5e86ed29f7334736f7c085ec81a2006f.tar.xz
[ms-inline asm] Add the isOffsetOf() function.
Part of rdar://12470317 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166436 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC')
-rw-r--r--include/llvm/MC/MCParser/MCParsedAsmOperand.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/MC/MCParser/MCParsedAsmOperand.h b/include/llvm/MC/MCParser/MCParsedAsmOperand.h
index 7d0914ebb4..35f47c0b9c 100644
--- a/include/llvm/MC/MCParser/MCParsedAsmOperand.h
+++ b/include/llvm/MC/MCParser/MCParsedAsmOperand.h
@@ -64,6 +64,11 @@ public:
/// getEndLoc - Get the location of the last token of this operand.
virtual SMLoc getEndLoc() const = 0;
+ /// isOffsetOf - Do we need to emit code to get the offset of the variable,
+ /// rather then the value of the variable? Only valid when parsing MS-style
+ /// inline assembly.
+ virtual bool isOffsetOf() const { return false; }
+
/// needSizeDirective - Do we need to emit a sizing directive for this
/// operand? Only valid when parsing MS-style inline assembly.
virtual bool needSizeDirective() const { return false; }