summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCParser/AsmParser.cpp
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
commite2f03771c44152083e3958a14ae543b635891a15 (patch)
tree41cb2e53ca2da3fd32da793c3f0144d15e066c9b /llvm/lib/MC/MCParser/AsmParser.cpp
parent808102685b2f82b07a98912993e74cc97d99f926 (diff)
downloadbcm5719-llvm-e2f03771c44152083e3958a14ae543b635891a15.tar.gz
bcm5719-llvm-e2f03771c44152083e3958a14ae543b635891a15.zip
[ms-inline asm] Have the target AsmParser create the asmrewrite for the offsetof
operator. llvm-svn: 166779
Diffstat (limited to 'llvm/lib/MC/MCParser/AsmParser.cpp')
-rw-r--r--llvm/lib/MC/MCParser/AsmParser.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp
index b47a6bdb540..0a657205493 100644
--- a/llvm/lib/MC/MCParser/AsmParser.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud