Move TargetInstrDescriptors extern to the one .cpp file that refers to it:
authorChris Lattner <sabre@nondot.org>
Tue, 29 Oct 2002 17:40:30 +0000 (17:40 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 29 Oct 2002 17:40:30 +0000 (17:40 +0000)
MachineInstr.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4392 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/MachineInstrInfo.h
include/llvm/Target/TargetInstrInfo.h
lib/CodeGen/MachineInstr.cpp

index 4198bedd8fc1f14615f55a35320886f9bca840b5..be6b812a3a642d2aa17386b76c27bc2780b1e2cb 100644 (file)
@@ -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.
index 4198bedd8fc1f14615f55a35320886f9bca840b5..be6b812a3a642d2aa17386b76c27bc2780b1e2cb 100644 (file)
@@ -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.
index 6371d8dbc7ee85195f372adefcdd6cae151109e9..2d2487e8687643e9e4c3c13c65faccca1558b0a2 100644 (file)
@@ -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)