aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/X86
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 /lib/Target/X86
parent6a02bbcdae9996a984ccb2497cb89719a69413ef (diff)
[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 'lib/Target/X86')
-rw-r--r--lib/Target/X86/AsmParser/X86AsmParser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/X86/AsmParser/X86AsmParser.cpp b/lib/Target/X86/AsmParser/X86AsmParser.cpp
index 63cce6cbc8..9689180afd 100644
--- a/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@ -320,6 +320,11 @@ struct X86Operand : public MCParsedAsmOperand {
return Mem.Size;
}
+ bool isOffsetOf() const {
+ assert(Kind == Memory && "Invalid access!");
+ return Mem.OffsetOf;
+ }
+
bool needSizeDirective() const {
assert(Kind == Memory && "Invalid access!");
return Mem.NeedSizeDir;