From 52c4596a0f09a64f17e759259c37d7457ed4c115 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 21 Mar 2011 21:08:27 +0000 Subject: [PATCH] Call static functions so that they aren't left unused. llvm-svn: 128020 --- utils/TableGen/AsmWriterEmitter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp index 450854d4e67..7c5c9e45ef6 100644 --- a/utils/TableGen/AsmWriterEmitter.cpp +++ b/utils/TableGen/AsmWriterEmitter.cpp @@ -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 > 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