summaryrefslogtreecommitdiff
path: root/utils/TableGen/InstrInfoEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-30 00:25:23 +0000
committerChris Lattner <sabre@nondot.org>2007-12-30 00:25:23 +0000
commit2c36affc82b3eff0c731f20a10a121feed90a663 (patch)
tree3e5c601965078e094ba1fcdf4ba31ce259cd713e /utils/TableGen/InstrInfoEmitter.cpp
parenta4161ee99478e7f8f9e33481e1c0dc79f0b4bd7d (diff)
downloadllvm-2c36affc82b3eff0c731f20a10a121feed90a663.tar.gz
llvm-2c36affc82b3eff0c731f20a10a121feed90a663.tar.bz2
llvm-2c36affc82b3eff0c731f20a10a121feed90a663.tar.xz
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
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 60cd5e77bf..004da9eaf1 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 <algorithm>
+#include <iostream>
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.";
}