Adjust to change in TII ctor arguments
authorChris Lattner <sabre@nondot.org>
Sun, 29 Feb 2004 06:31:44 +0000 (06:31 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 29 Feb 2004 06:31:44 +0000 (06:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11987 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcInstrInfo.cpp
lib/Target/SparcV8/SparcV8InstrInfo.cpp
lib/Target/SparcV9/SparcV9InstrInfo.cpp
lib/Target/TargetInstrInfo.cpp
lib/Target/X86/X86InstrInfo.cpp

index 71fc2d6d7105ad3ca416d0d866eb2c4ef37e21b1..b9ce21cf70f6ab347a5549467652ce7d8e508c3a 100644 (file)
@@ -17,7 +17,6 @@
 using namespace llvm;
 
 SparcV8InstrInfo::SparcV8InstrInfo()
-  : TargetInstrInfo(SparcV8Insts,
-                    sizeof(SparcV8Insts)/sizeof(SparcV8Insts[0]), 0) {
+  : TargetInstrInfo(SparcV8Insts, sizeof(SparcV8Insts)/sizeof(SparcV8Insts[0])){
 }
 
index 71fc2d6d7105ad3ca416d0d866eb2c4ef37e21b1..b9ce21cf70f6ab347a5549467652ce7d8e508c3a 100644 (file)
@@ -17,7 +17,6 @@
 using namespace llvm;
 
 SparcV8InstrInfo::SparcV8InstrInfo()
-  : TargetInstrInfo(SparcV8Insts,
-                    sizeof(SparcV8Insts)/sizeof(SparcV8Insts[0]), 0) {
+  : TargetInstrInfo(SparcV8Insts, sizeof(SparcV8Insts)/sizeof(SparcV8Insts[0])){
 }
 
index 6cb65d8374c2f47d361581dbaa2d74638ddecf02..556e597426997fe73b89c24ba41329fd2dc11a68 100644 (file)
@@ -416,12 +416,8 @@ InitializeMaxConstantsTable()
 //   default to member functions in base class TargetInstrInfo. 
 //---------------------------------------------------------------------------
 
-/*ctor*/
 SparcV9InstrInfo::SparcV9InstrInfo()
-  : TargetInstrInfo(SparcV9MachineInstrDesc,
-                    /*descSize = */ V9::NUM_TOTAL_OPCODES,
-                    /*numRealOpCodes = */ V9::NUM_REAL_OPCODES)
-{
+  : TargetInstrInfo(SparcV9MachineInstrDesc, V9::NUM_TOTAL_OPCODES) {
   InitializeMaxConstantsTable();
 }
 
index a3131bb319f556766df98d3dd8a16c87eaca655d..efcf9db4eb7ee997dc523796981e108ab3e9aff0 100644 (file)
@@ -24,9 +24,8 @@ namespace llvm {
 const TargetInstrDescriptor* TargetInstrDescriptors = 0;
 
 TargetInstrInfo::TargetInstrInfo(const TargetInstrDescriptor* Desc,
-                                unsigned DescSize,
-                                unsigned NumRealOpCodes)
-  : desc(Desc), descSize(DescSize), numRealOpCodes(NumRealOpCodes) {
+                                unsigned numOpcodes)
+  : desc(Desc), NumOpcodes(numOpcodes) {
   // FIXME: TargetInstrDescriptors should not be global
   assert(TargetInstrDescriptors == NULL && desc != NULL
          && "TargetMachine data structure corrupt; maybe you tried to create another TargetMachine? (only one may exist in a program)");
index bf26d74758f2250102f5d2d4083faab1db99b91a..82f613fabf43950b72340643e175ed3dcd924499 100644 (file)
 #include "X86InstrInfo.h"
 #include "X86.h"
 #include "llvm/CodeGen/MachineInstrBuilder.h"
-
 #include "X86GenInstrInfo.inc"
-
 using namespace llvm;
 
 X86InstrInfo::X86InstrInfo()
-  : TargetInstrInfo(X86Insts, sizeof(X86Insts)/sizeof(X86Insts[0]), 0) {
+  : TargetInstrInfo(X86Insts, sizeof(X86Insts)/sizeof(X86Insts[0])) {
 }