[TableGen] Don't call emitSourceFileHeader a second time in the middle of the output file.

llvm-svn: 260501
This commit is contained in:
Craig Topper 2016-02-11 07:39:27 +00:00
parent fc1b4d4d32
commit a3ebc4f03e
1 changed files with 1 additions and 3 deletions

View File

@ -339,11 +339,9 @@ void InstrInfoEmitter::emitOperandTypesEnum(raw_ostream &OS,
// run - Emit the main instruction description records for the target...
void InstrInfoEmitter::run(raw_ostream &OS) {
emitSourceFileHeader("Target Instruction Enum Values", OS);
emitSourceFileHeader("Target Instruction Enum Values and Descriptors", OS);
emitEnums(OS);
emitSourceFileHeader("Target Instruction Descriptors", OS);
OS << "#ifdef GET_INSTRINFO_MC_DESC\n";
OS << "#undef GET_INSTRINFO_MC_DESC\n";