aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-23 18:40:08 +0000
committerChris Lattner <sabre@nondot.org>2004-02-23 18:40:08 +0000
commit11d1f21e1d400826ccc3cae5702d6a626baa906b (patch)
treec2d43c606675ef1653d5a3d2424f4481a70d741e /lib/CodeGen
parent0742b59913a7760eb26f08121cd244a37e83e3b3 (diff)
downloadexternal_llvm-11d1f21e1d400826ccc3cae5702d6a626baa906b.zip
external_llvm-11d1f21e1d400826ccc3cae5702d6a626baa906b.tar.gz
external_llvm-11d1f21e1d400826ccc3cae5702d6a626baa906b.tar.bz2
Fix bugs in finegrainification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11758 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/MachineInstr.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index 43d0e3c..030cb7e 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/lib/CodeGen/MachineInstr.cpp
@@ -30,7 +30,7 @@ using namespace llvm;
// FIXME: This should be a property of the target so that more than one target
// at a time can be active...
//
-namespace {
+namespace llvm {
extern const TargetInstrDescriptor *TargetInstrDescriptors;
}
@@ -329,6 +329,7 @@ void MachineInstr::print(std::ostream &OS, const TargetMachine &TM) const {
OS << "\n";
}
+namespace llvm {
std::ostream &operator<<(std::ostream &os, const MachineInstr &MI) {
// If the instruction is embedded into a basic block, we can find the target
// info for the instruction.
@@ -448,3 +449,4 @@ std::ostream &operator<<(std::ostream &OS, const MachineOperand &MO) {
return OS;
}
+}