summaryrefslogtreecommitdiff
path: root/utils/TableGen/InstrInfoEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-07 04:57:31 +0000
committerChris Lattner <sabre@nondot.org>2008-01-07 04:57:31 +0000
commitaf3eb7c7583555ea5fd08e99f28b0042811e4dc2 (patch)
treec66390dce32f5f54ceff5671a4c981902a2a8d6f /utils/TableGen/InstrInfoEmitter.cpp
parent7358c193fd2c7e6cc844f72e2203cbdb7692759f (diff)
downloadllvm-af3eb7c7583555ea5fd08e99f28b0042811e4dc2.tar.gz
llvm-af3eb7c7583555ea5fd08e99f28b0042811e4dc2.tar.bz2
llvm-af3eb7c7583555ea5fd08e99f28b0042811e4dc2.tar.xz
the name field of instructions is never set to a non-empty string,
just unconditionally use the def name of the instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45684 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/InstrInfoEmitter.cpp')
-rw-r--r--utils/TableGen/InstrInfoEmitter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp
index 6d08b20f3a..40dd1f023e 100644
--- a/utils/TableGen/InstrInfoEmitter.cpp
+++ b/utils/TableGen/InstrInfoEmitter.cpp
@@ -205,7 +205,7 @@ void InstrInfoEmitter::InferFromPattern(const CodeGenInstruction &Inst,
fprintf(stderr,
"Warning: mayStore flag explicitly set on instruction '%s'"
" but flag already inferred from pattern.\n",
- Inst.getName().c_str());
+ Inst.TheDef->getName().c_str());
mayStore = true;
}
@@ -285,7 +285,7 @@ void InstrInfoEmitter::emitRecord(const CodeGenInstruction &Inst, unsigned Num,
InferFromPattern(Inst, mayStore, isLoad, NeverHasSideEffects);
if (NeverHasSideEffects && Inst.mayHaveSideEffects) {
- std::cerr << "error: Instruction '" << Inst.getName()
+ std::cerr << "error: Instruction '" << Inst.TheDef->getName()
<< "' is marked with 'mayHaveSideEffects', but it can never have them!\n";
exit(1);
}
@@ -298,7 +298,7 @@ void InstrInfoEmitter::emitRecord(const CodeGenInstruction &Inst, unsigned Num,
OS << " { ";
OS << Num << ",\t" << MinOperands << ",\t"
- << Inst.NumDefs << ",\t\"" << Inst.getName();
+ << Inst.NumDefs << ",\t\"" << Inst.TheDef->getName();
OS << "\",\t" << getItinClassNumber(Inst.TheDef) << ", 0";
// Emit all of the target indepedent flags...