Remove dead code.
authorCraig Topper <craig.topper@gmail.com>
Tue, 25 Nov 2014 20:11:29 +0000 (20:11 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 25 Nov 2014 20:11:29 +0000 (20:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222781 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/Target.td
utils/TableGen/AsmWriterEmitter.cpp
utils/TableGen/AsmWriterInst.cpp
utils/TableGen/AsmWriterInst.h

index 902647e2b987a38ed62e2067b0675b21a2af588f..96b4c7f9dfb161b16c8676a04efbe12951121d21 100644 (file)
@@ -1005,9 +1005,6 @@ class AsmWriter {
   // will specify which alternative to use.  For example "{x|y|z}" with Variant
   // == 1, will expand to "y".
   int Variant = 0;
-
-  // OperandSpacing - Space between operand columns.
-  int OperandSpacing = -1;
 }
 def DefaultAsmWriter : AsmWriter;
 
index 9ca78f40d172c6b47d560d223a2a2ff1d2c60231..017211c269ab2791abed2fdb445ab8785776b2eb 100644 (file)
@@ -1091,8 +1091,7 @@ AsmWriterEmitter::AsmWriterEmitter(RecordKeeper &R) : Records(R), Target(R) {
        I != E; ++I)
     if (!(*I)->AsmString.empty() && (*I)->TheDef->getName() != "PHI")
       Instructions.push_back(
-          AsmWriterInst(**I, AsmWriter->getValueAsInt("Variant"),
-                        AsmWriter->getValueAsInt("OperandSpacing")));
+          AsmWriterInst(**I, AsmWriter->getValueAsInt("Variant")));
 
   // Get the instruction numbering.
   NumberedInstructions = &Target.getInstructionsByEnumValue();
index 5d9ead10b361d6dc5bc46cc0c44683c834f47bd2..6ddc510473ed5c0bccc878805d568c28f2923e2b 100644 (file)
@@ -48,9 +48,7 @@ std::string AsmWriterOperand::getCode() const {
 /// ParseAsmString - Parse the specified Instruction's AsmString into this
 /// AsmWriterInst.
 ///
-AsmWriterInst::AsmWriterInst(const CodeGenInstruction &CGI,
-                             unsigned Variant,
-                             int OperandSpacing) {
+AsmWriterInst::AsmWriterInst(const CodeGenInstruction &CGI, unsigned Variant) {
   this->CGI = &CGI;
 
   // NOTE: Any extensions to this code need to be mirrored in the
index fd7798255d4b8a81af56f8cdaa980de54f714f34..6a900b7997011c7067b1c2f5f15721f69587d6c0 100644 (file)
@@ -88,8 +88,7 @@ namespace llvm {
     const CodeGenInstruction *CGI;
 
     AsmWriterInst(const CodeGenInstruction &CGI,
-                  unsigned Variant,
-                  int OperandSpacing);
+                  unsigned Variant);
 
     /// MatchesAllButOneOp - If this instruction is exactly identical to the
     /// specified instruction except for one differing operand, return the