aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-10-30 18:57:07 +0000
committerChris Lattner <sabre@nondot.org>2010-10-30 18:57:07 +0000
commit8cc0a6b788a17b3afc779e9da90f5203c8b78436 (patch)
tree6e3acbf5089682fe9d165ed65f08ea17f2dbab60
parent4fd32c66481c107a4f32cbec0c3017d9c6154a93 (diff)
downloadexternal_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.cpp6
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;