aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-04-11 22:00:03 +0000
committerChad Rosier <mcrosier@apple.com>2013-04-11 22:00:03 +0000
commitf16b08de8a57b921ef10f96d5e233027530db448 (patch)
treec7e1dba644cc7c7733183b0fa8b04eee451f8160
parentf06cc981495991d2095ed4066f0eb9c0241c0a61 (diff)
[ms-inline asm] Add a new AsmRewriteKind, AOK_Delete. To be used in a future
commit. Part of rdar://13453209 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179325 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/MC/MCTargetAsmParser.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/include/llvm/MC/MCTargetAsmParser.h b/include/llvm/MC/MCTargetAsmParser.h
index 2cdb983285..6e878df3cb 100644
--- a/include/llvm/MC/MCTargetAsmParser.h
+++ b/include/llvm/MC/MCTargetAsmParser.h
@@ -22,7 +22,8 @@ class MCInst;
template <typename T> class SmallVectorImpl;
enum AsmRewriteKind {
- AOK_Align = 0, // Rewrite align as .align.
+ AOK_Delete = 0, // Rewrite should be ignored.
+ AOK_Align, // Rewrite align as .align.
AOK_DotOperator, // Rewrite a dot operator expression as an immediate.
// E.g., [eax].foo.bar -> [eax].8
AOK_Emit, // Rewrite _emit as .byte.
@@ -35,15 +36,16 @@ enum AsmRewriteKind {
};
const char AsmRewritePrecedence [] = {
- 0, // AOK_Align
- 0, // AOK_DotOperator
- 0, // AOK_Emit
- 2, // AOK_Imm
- 2, // AOK_ImmPrefix
- 1, // AOK_Input
- 1, // AOK_Output
- 3, // AOK_SizeDirective
- 0 // AOK_Skip
+ 0, // AOK_Delete
+ 1, // AOK_Align
+ 1, // AOK_DotOperator
+ 1, // AOK_Emit
+ 3, // AOK_Imm
+ 3, // AOK_ImmPrefix
+ 2, // AOK_Input
+ 2, // AOK_Output
+ 4, // AOK_SizeDirective
+ 1 // AOK_Skip
};
struct AsmRewrite {