diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-10-22 19:50:35 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-10-22 19:50:35 +0000 |
commit | a703fb9e5e86ed29f7334736f7c085ec81a2006f (patch) | |
tree | 584bca11bbfbd7b8548e668e41f0bfcbd8ab0f98 /include | |
parent | 6a02bbcdae9996a984ccb2497cb89719a69413ef (diff) | |
download | external_llvm-a703fb9e5e86ed29f7334736f7c085ec81a2006f.zip external_llvm-a703fb9e5e86ed29f7334736f7c085ec81a2006f.tar.gz external_llvm-a703fb9e5e86ed29f7334736f7c085ec81a2006f.tar.bz2 |
[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')
-rw-r--r-- | include/llvm/MC/MCParser/MCParsedAsmOperand.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/MC/MCParser/MCParsedAsmOperand.h b/include/llvm/MC/MCParser/MCParsedAsmOperand.h index 7d0914e..35f47c0 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; } |