From: Chris Lattner Date: Sun, 30 Dec 2007 00:25:23 +0000 (+0000) Subject: tblgen shouldn't include headers from llvm codegen. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2c36affc82b3eff0c731f20a10a121feed90a663;p=oota-llvm.git tblgen shouldn't include headers from llvm codegen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45429 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp index 60cd5e77bf8..004da9eaf14 100644 --- a/utils/TableGen/InstrInfoEmitter.cpp +++ b/utils/TableGen/InstrInfoEmitter.cpp @@ -14,9 +14,9 @@ #include "InstrInfoEmitter.h" #include "CodeGenTarget.h" -#include "llvm/Target/TargetInstrInfo.h" #include "Record.h" #include +#include using namespace llvm; // runEnums - Print out enum values for all of the instructions. @@ -37,7 +37,7 @@ void InstrInfoEmitter::runEnums(std::ostream &OS) { } if (Namespace.empty()) { - cerr << "No instructions defined!\n"; + std::cerr << "No instructions defined!\n"; exit(1); } @@ -365,7 +365,7 @@ void InstrInfoEmitter::emitShiftedValue(Record *R, StringInit *Val, return; } - cerr << "Unhandled initializer: " << *Val << "\n"; + std::cerr << "Unhandled initializer: " << *Val << "\n"; throw "In record '" + R->getName() + "' for TSFlag emission."; }