Call static functions so that they aren't left unused.
authorBill Wendling <isanbard@gmail.com>
Mon, 21 Mar 2011 21:08:27 +0000 (21:08 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 21 Mar 2011 21:08:27 +0000 (21:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128020 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/AsmWriterEmitter.cpp

index 450854d4e67700a65f2f7656aee227ce472c798a..7c5c9e45ef60b3d8641a205fdc28d532c54dc585 100644 (file)
@@ -847,7 +847,6 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) {
     AliasMap[getQualifiedName(Op->getDef())].push_back(Alias);
   }
 
-#if 0
   // A map of which conditions need to be met for each instruction operand
   // before it can be matched to the mnemonic.
   std::map<std::string, std::vector<IAPrinter*> > IAPrinterMap;
@@ -930,15 +929,18 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) {
       if (CantHandle) continue;
       IAPrinterMap[I->first].push_back(IAP);
 
+#if 0
       O.indent(4) << "// " << I->first << '\n';
       O.indent(4);
       IAP->print(O);
+#endif
     }
   }
 
+  O << "#if 0\n";
   EmitSubtargetFeatureFlagEnumeration(AWI, O);
   EmitComputeAvailableFeatures(AWI, AsmWriter, Target, O);
-#endif
+  O << "#endif\n\n";
 
   O << "bool " << Target.getName() << ClassName
     << "::printAliasInstr(const " << MachineInstrClassName