aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC
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
parente5372d6565839a5ee493d417a45b59cc8fca9028 (diff)
downloadexternal_llvm-6e43157b5d39a713d4061f97629bf9107c6d25e0.zip
external_llvm-6e43157b5d39a713d4061f97629bf9107c6d25e0.tar.gz
external_llvm-6e43157b5d39a713d4061f97629bf9107c6d25e0.tar.bz2
[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')
-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 b47a6bd..0a65720 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;