tblgen shouldn't include headers from llvm codegen.

llvm-svn: 45429
This commit is contained in:
Chris Lattner 2007-12-30 00:25:23 +00:00
parent c288ff1d78
commit dc3c9050f8
1 changed files with 3 additions and 3 deletions

View File

@ -14,9 +14,9 @@
#include "InstrInfoEmitter.h" #include "InstrInfoEmitter.h"
#include "CodeGenTarget.h" #include "CodeGenTarget.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "Record.h" #include "Record.h"
#include <algorithm> #include <algorithm>
#include <iostream>
using namespace llvm; using namespace llvm;
// runEnums - Print out enum values for all of the instructions. // runEnums - Print out enum values for all of the instructions.
@ -37,7 +37,7 @@ void InstrInfoEmitter::runEnums(std::ostream &OS) {
} }
if (Namespace.empty()) { if (Namespace.empty()) {
cerr << "No instructions defined!\n"; std::cerr << "No instructions defined!\n";
exit(1); exit(1);
} }
@ -365,7 +365,7 @@ void InstrInfoEmitter::emitShiftedValue(Record *R, StringInit *Val,
return; return;
} }
cerr << "Unhandled initializer: " << *Val << "\n"; std::cerr << "Unhandled initializer: " << *Val << "\n";
throw "In record '" + R->getName() + "' for TSFlag emission."; throw "In record '" + R->getName() + "' for TSFlag emission.";
} }