summaryrefslogtreecommitdiff
path: root/lib/MC/MCParser
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-10-26 16:09:20 +0000
committerChad Rosier <mcrosier@apple.com>2012-10-26 16:09:20 +0000
commit6e43157b5d39a713d4061f97629bf9107c6d25e0 (patch)
treed3813b668e41cb2898ae640c91d90f347f7fca4f /lib/MC/MCParser
parente5372d6565839a5ee493d417a45b59cc8fca9028 (diff)
downloadllvm-6e43157b5d39a713d4061f97629bf9107c6d25e0.tar.gz
llvm-6e43157b5d39a713d4061f97629bf9107c6d25e0.tar.bz2
llvm-6e43157b5d39a713d4061f97629bf9107c6d25e0.tar.xz
[ms-inline asm] Have the target AsmParser create the asmrewrite for the offsetof
operator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166779 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCParser')
-rw-r--r--lib/MC/MCParser/AsmParser.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp
index b47a6bdb54..0a65720549 100644
--- a/lib/MC/MCParser/AsmParser.cpp
+++ b/lib/MC/MCParser/AsmParser.cpp
@@ -3667,12 +3667,6 @@ bool AsmParser::ParseMSInlineAsm(void *AsmLoc, std::string &AsmString,
AsmStrRewrites.push_back(AsmRewrite(AOK_SizeDirective,
Operand->getStartLoc(), 0,
Operand->getMemSize()));
-
- // Don't emit the offset directive.
- if (Operand->isOffsetOf())
- AsmStrRewrites.push_back(AsmRewrite(AOK_Skip,
- Operand->getOffsetOfLoc(), 7));
-
if (isOutput) {
std::string Constraint = "=";
++InputIdx;