diff options
author | Eric Christopher <echristo@apple.com> | 2011-04-18 21:28:11 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-04-18 21:28:11 +0000 |
commit | 721ef66d17978a7474bc2bde5a0ce2996615a7ce (patch) | |
tree | 8ddaf6c7134c60df1b1f87793a65f43b6666dce7 /utils | |
parent | 6dda9163585660a080c7fe0484a0dd75aceea00d (diff) | |
download | external_llvm-721ef66d17978a7474bc2bde5a0ce2996615a7ce.zip external_llvm-721ef66d17978a7474bc2bde5a0ce2996615a7ce.tar.gz external_llvm-721ef66d17978a7474bc2bde5a0ce2996615a7ce.tar.bz2 |
Invert the meaning of printAliasInstr's return value. It now returns
true on success and false on failure. Update callers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/AsmWriterEmitter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp index f9686fd..2b1a4cc 100644 --- a/utils/TableGen/AsmWriterEmitter.cpp +++ b/utils/TableGen/AsmWriterEmitter.cpp @@ -975,11 +975,11 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) { CasesO << '\n'; } - CasesO.indent(4) << "return true;\n"; + CasesO.indent(4) << "return false;\n"; } if (CasesO.str().empty() || !isMC) { - O << " return true;\n"; + O << " return false;\n"; O << "}\n\n"; O << "#endif // PRINT_ALIAS_INSTR\n"; return; @@ -990,7 +990,7 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) { if (NeedAvailableFeatures) O.indent(2) << "unsigned AvailableFeatures = getAvailableFeatures();\n\n"; O.indent(2) << "switch (MI->getOpcode()) {\n"; - O.indent(2) << "default: return true;\n"; + O.indent(2) << "default: return false;\n"; O << CasesO.str(); O.indent(2) << "}\n\n"; @@ -1019,7 +1019,7 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) { O << " }\n"; O << " }\n\n"; - O << " return false;\n"; + O << " return true;\n"; O << "}\n\n"; O << "#endif // PRINT_ALIAS_INSTR\n"; |