[llvm-branch-commits] [llvm-branch] r119203 - /llvm/branches/Apple/whitney/utils/TableGen/AsmMatcherEmitter.cpp

Daniel Dunbar daniel at zuster.org
Mon Nov 15 13:43:24 PST 2010


Author: ddunbar
Date: Mon Nov 15 15:43:24 2010
New Revision: 119203

URL: http://llvm.org/viewvc/llvm-project?rev=119203&view=rev
Log:
Merge r117828:
--
Author: Chris Lattner <clattner at apple.com>
Date:   Sat Oct 30 18:57:07 2010 +0000

    fix build problem

Modified:
    llvm/branches/Apple/whitney/utils/TableGen/AsmMatcherEmitter.cpp

Modified: llvm/branches/Apple/whitney/utils/TableGen/AsmMatcherEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/utils/TableGen/AsmMatcherEmitter.cpp?rev=119203&r1=119202&r2=119203&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/utils/TableGen/AsmMatcherEmitter.cpp (original)
+++ llvm/branches/Apple/whitney/utils/TableGen/AsmMatcherEmitter.cpp Mon Nov 15 15:43:24 2010
@@ -1517,13 +1517,13 @@
 /// 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;





More information about the llvm-branch-commits mailing list