summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-29 17:40:30 +0000
committerChris Lattner <sabre@nondot.org>2002-10-29 17:40:30 +0000
commit07e26837a96861a8c7c090df0ad02c6942101f41 (patch)
treecd4a5beaff4c61b62b2c4132f44e2f6b953a41f1
parent268d600a88b56a5e893268dd54952503460f953c (diff)
downloadbcm5719-llvm-07e26837a96861a8c7c090df0ad02c6942101f41.tar.gz
bcm5719-llvm-07e26837a96861a8c7c090df0ad02c6942101f41.zip
Move TargetInstrDescriptors extern to the one .cpp file that refers to it:
MachineInstr.cpp llvm-svn: 4392
-rw-r--r--llvm/include/llvm/Target/MachineInstrInfo.h10
-rw-r--r--llvm/include/llvm/Target/TargetInstrInfo.h10
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp8
3 files changed, 8 insertions, 20 deletions
diff --git a/llvm/include/llvm/Target/MachineInstrInfo.h b/llvm/include/llvm/Target/MachineInstrInfo.h
index 4198bedd8fc..be6b812a3a6 100644
--- a/llvm/include/llvm/Target/MachineInstrInfo.h
+++ b/llvm/include/llvm/Target/MachineInstrInfo.h
@@ -29,16 +29,6 @@ typedef unsigned InstrSchedClass;
const MachineOpCode INVALID_MACHINE_OPCODE = -1;
-// Global variable holding an array of descriptors for machine instructions.
-// The actual object needs to be created separately for each target machine.
-// This variable is initialized and reset by class MachineInstrInfo.
-//
-// FIXME: This should be a property of the target so that more than one target
-// at a time can be active...
-//
-extern const MachineInstrDescriptor *TargetInstrDescriptors;
-
-
//---------------------------------------------------------------------------
// struct MachineInstrDescriptor:
// Predefined information about each machine instruction.
diff --git a/llvm/include/llvm/Target/TargetInstrInfo.h b/llvm/include/llvm/Target/TargetInstrInfo.h
index 4198bedd8fc..be6b812a3a6 100644
--- a/llvm/include/llvm/Target/TargetInstrInfo.h
+++ b/llvm/include/llvm/Target/TargetInstrInfo.h
@@ -29,16 +29,6 @@ typedef unsigned InstrSchedClass;
const MachineOpCode INVALID_MACHINE_OPCODE = -1;
-// Global variable holding an array of descriptors for machine instructions.
-// The actual object needs to be created separately for each target machine.
-// This variable is initialized and reset by class MachineInstrInfo.
-//
-// FIXME: This should be a property of the target so that more than one target
-// at a time can be active...
-//
-extern const MachineInstrDescriptor *TargetInstrDescriptors;
-
-
//---------------------------------------------------------------------------
// struct MachineInstrDescriptor:
// Predefined information about each machine instruction.
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 6371d8dbc7e..2d2487e8687 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -7,6 +7,14 @@
#include "llvm/Target/MachineInstrInfo.h" // FIXME: shouldn't need this!
using std::cerr;
+// Global variable holding an array of descriptors for machine instructions.
+// The actual object needs to be created separately for each target machine.
+// This variable is initialized and reset by class MachineInstrInfo.
+//
+// FIXME: This should be a property of the target so that more than one target
+// at a time can be active...
+//
+extern const MachineInstrDescriptor *TargetInstrDescriptors;
// Constructor for instructions with fixed #operands (nearly all)
MachineInstr::MachineInstr(MachineOpCode _opCode)
OpenPOWER on IntegriCloud