mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 03:30:22 +00:00
[ms-inline asm] Add the implementation for the AOK_Delete kind, which was added
in r179325. Test case coming shortly on the clang side. Part of rdar://13453209 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179383 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
08a0e8f8db
commit
dda4b6bf25
@ -4188,12 +4188,13 @@ AsmParser::parseMSInlineAsm(void *AsmLoc, std::string &AsmString,
|
||||
for (SmallVectorImpl<AsmRewrite>::iterator I = AsmStrRewrites.begin(),
|
||||
E = AsmStrRewrites.end();
|
||||
I != E; ++I) {
|
||||
AsmRewriteKind Kind = (*I).Kind;
|
||||
if (Kind == AOK_Delete)
|
||||
continue;
|
||||
|
||||
const char *Loc = (*I).Loc.getPointer();
|
||||
assert(Loc >= AsmStart && "Expected Loc to be at or after Start!");
|
||||
|
||||
unsigned AdditionalSkip = 0;
|
||||
AsmRewriteKind Kind = (*I).Kind;
|
||||
|
||||
// Emit everything up to the immediate/expression.
|
||||
unsigned Len = Loc - AsmStart;
|
||||
if (Len)
|
||||
@ -4205,6 +4206,7 @@ AsmParser::parseMSInlineAsm(void *AsmLoc, std::string &AsmString,
|
||||
continue;
|
||||
}
|
||||
|
||||
unsigned AdditionalSkip = 0;
|
||||
// Rewrite expressions in $N notation.
|
||||
switch (Kind) {
|
||||
default: break;
|
||||
|
Loading…
Reference in New Issue
Block a user