fix build problem
authorChris Lattner <sabre@nondot.org>
Sat, 30 Oct 2010 18:57:07 +0000 (18:57 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 30 Oct 2010 18:57:07 +0000 (18:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117828 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/AsmMatcherEmitter.cpp

index 8cc766e4619b5e2cbf4405ef222d066cea9e2bdc..2fa44b1b136b1af61a1b2bbd5a0de6b555363680 100644 (file)
@@ -1517,13 +1517,13 @@ static void EmitComputeAvailableFeatures(CodeGenTarget &Target,
 /// EmitMnemonicAliases - If the target has any MnemonicAlias<> definitions,
 /// emit a function for them and return true, otherwise return false.
 static bool EmitMnemonicAliases(raw_ostream &OS) {
-  OS << "static void ApplyMnemonicAliases(StringRef &Mnemonic, "
-  "unsigned Features) {\n";
-  
   std::vector<Record*> Aliases =
     Records.getAllDerivedDefinitions("MnemonicAlias");
   if (Aliases.empty()) return false;
 
+  OS << "static void ApplyMnemonicAliases(StringRef &Mnemonic, "
+        "unsigned Features) {\n";
+  
   // Keep track of all the aliases from a mnemonic.  Use an std::map so that the
   // iteration order of the map is stable.
   std::map<std::string, std::vector<Record*> > AliasesFromMnemonic;