diff options
author | Chris Lattner <sabre@nondot.org> | 2010-10-30 18:57:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-10-30 18:57:07 +0000 |
commit | 8cc0a6b788a17b3afc779e9da90f5203c8b78436 (patch) | |
tree | 6e3acbf5089682fe9d165ed65f08ea17f2dbab60 | |
parent | 4fd32c66481c107a4f32cbec0c3017d9c6154a93 (diff) | |
download | external_llvm-8cc0a6b788a17b3afc779e9da90f5203c8b78436.zip external_llvm-8cc0a6b788a17b3afc779e9da90f5203c8b78436.tar.gz external_llvm-8cc0a6b788a17b3afc779e9da90f5203c8b78436.tar.bz2 |
fix build problem
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117828 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | utils/TableGen/AsmMatcherEmitter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/AsmMatcherEmitter.cpp b/utils/TableGen/AsmMatcherEmitter.cpp index 8cc766e..2fa44b1 100644 --- a/utils/TableGen/AsmMatcherEmitter.cpp +++ b/utils/TableGen/AsmMatcherEmitter.cpp @@ -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; |