diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2015-03-28 04:03:51 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2015-03-28 04:03:51 +0000 |
commit | 2841bc68583ddadcaf11e2a022c73d97259f0900 (patch) | |
tree | 15024d6f33f843f3a1cc8610188067ff03fb04c0 /lib/Target/Sparc/Sparc.td | |
parent | 74381e237b39f010f7394798ffc8b159b3f54849 (diff) |
[SparcInstPrinter] Use the subtarget that is passed to the print function
instead of the one passed to the constructor.
Unfortunately, I don't have a test case for this change. In order to test my
change, I will have to run the code after line 90 in printSparcAliasInstr. I
couldn't make that happen because printAliasInstr would always handle the
printing of fcmp instructions that the code after line 90 is supposed to handle.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233471 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc/Sparc.td')
-rw-r--r-- | lib/Target/Sparc/Sparc.td | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/Sparc/Sparc.td b/lib/Target/Sparc/Sparc.td index 3159a4651ac..c34122eef92 100644 --- a/lib/Target/Sparc/Sparc.td +++ b/lib/Target/Sparc/Sparc.td @@ -92,8 +92,15 @@ def : Proc<"niagara4", [FeatureV9, FeatureV8Deprecated, UsePopc, // Declare the target which we are implementing //===----------------------------------------------------------------------===// +def SparcAsmWriter : AsmWriter { + string AsmWriterClassName = "InstPrinter"; + int PassSubtarget = 1; + int Variant = 0; +} + def Sparc : Target { // Pull in Instruction Info: let InstructionSet = SparcInstrInfo; let AssemblyParsers = [SparcAsmParser]; + let AssemblyWriters = [SparcAsmWriter]; } |