summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
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
commit91a7dc0a6e610aef306d2ba539eb9279baab5635 (patch)
treea1788532b977188e23f35afbed4e1eec76030868 /llvm/lib/CodeGen/MachineInstr.cpp
parent43df6c268b35240d4386f3ad26af94ecb1fe4493 (diff)
downloadbcm5719-llvm-91a7dc0a6e610aef306d2ba539eb9279baab5635.tar.gz
bcm5719-llvm-91a7dc0a6e610aef306d2ba539eb9279baab5635.zip
Fix bugs in finegrainification
llvm-svn: 11758
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 43d0e3c9fa0..030cb7ef0cf 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/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;
}
+}
OpenPOWER on IntegriCloud