diff options
| author | Jim Grosbach <grosbach@apple.com> | 2010-09-30 01:29:54 +0000 |
|---|---|---|
| committer | Jim Grosbach <grosbach@apple.com> | 2010-09-30 01:29:54 +0000 |
| commit | ca96a861655d3fcfc5ff047e249703930c8330bc (patch) | |
| tree | 92604ea321edafed758d625ed872c0a9bd9d2d77 /include | |
| parent | 97fe645bc29612eff47ec8841a4b3eb3442a0a0b (diff) | |
| download | external_llvm-ca96a861655d3fcfc5ff047e249703930c8330bc.zip external_llvm-ca96a861655d3fcfc5ff047e249703930c8330bc.tar.gz external_llvm-ca96a861655d3fcfc5ff047e249703930c8330bc.tar.bz2 | |
Let a target specify whether it wants an assembly printer to be the MC version
or not. TableGen needs to generate the printInstruction() function as taking
an MCInstr* or a MachineInstr*, depending. Default to the old non-MC
version so that everything not yet using MC continues to just work without
fidding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115126 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
| -rw-r--r-- | include/llvm/Target/Target.td | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Target/Target.td b/include/llvm/Target/Target.td index b141a77..366a72f 100644 --- a/include/llvm/Target/Target.td +++ b/include/llvm/Target/Target.td @@ -565,6 +565,11 @@ class AsmWriter { // OperandSpacing - Space between operand columns. int OperandSpacing = -1; + + // isMCAsmWriter - Is this assembly writer for an MC emitter? This controls + // generation of the printInstruction() method. For MC printers, it takes + // an MCInstr* operand, otherwise it takes a MachineInstr*. + bit isMCAsmWriter = 0; } def DefaultAsmWriter : AsmWriter; |
