summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2014-01-10 22:59:49 +0000
committerRoman Divacky <rdivacky@freebsd.org>2014-01-10 22:59:49 +0000
commit9dc6df57442e0c353a1c14e4e0c29f422f3df8ae (patch)
tree7cbe96361249313a773a22b820e8c2de2faa8b70 /llvm
parentc46e479d12655d6d28f0cd8c0efd590a6ab9d28a (diff)
downloadbcm5719-llvm-9dc6df57442e0c353a1c14e4e0c29f422f3df8ae.tar.gz
bcm5719-llvm-9dc6df57442e0c353a1c14e4e0c29f422f3df8ae.zip
Constant propagate MachineInstrClassName.
llvm-svn: 198969
Diffstat (limited to 'llvm')
-rw-r--r--llvm/utils/TableGen/AsmWriterEmitter.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/AsmWriterEmitter.cpp b/llvm/utils/TableGen/AsmWriterEmitter.cpp
index 59667f8c495..936ba909d20 100644
--- a/llvm/utils/TableGen/AsmWriterEmitter.cpp
+++ b/llvm/utils/TableGen/AsmWriterEmitter.cpp
@@ -280,14 +280,12 @@ static void UnescapeString(std::string &Str) {
void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) {
Record *AsmWriter = Target.getAsmWriter();
std::string ClassName = AsmWriter->getValueAsString("AsmWriterClassName");
- const char *MachineInstrClassName = "MCInst";
O <<
"/// printInstruction - This method is automatically generated by tablegen\n"
"/// from the instruction set description.\n"
"void " << Target.getName() << ClassName
- << "::printInstruction(const " << MachineInstrClassName
- << " *MI, raw_ostream &O) {\n";
+ << "::printInstruction(const MCInst *MI, raw_ostream &O) {\n";
// Build an aggregate string, and build a table of offsets into it.
SequenceToOffsetTable<std::string> StringTable;
OpenPOWER on IntegriCloud