diff options
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/SparcV8/SparcV8InstrInfo.cpp | 3 | ||||
-rw-r--r-- | llvm/lib/Target/SparcV9/SparcV9InstrInfo.cpp | 6 | ||||
-rw-r--r-- | llvm/lib/Target/TargetInstrInfo.cpp | 5 | ||||
-rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.cpp | 4 |
4 files changed, 5 insertions, 13 deletions
diff --git a/llvm/lib/Target/SparcV8/SparcV8InstrInfo.cpp b/llvm/lib/Target/SparcV8/SparcV8InstrInfo.cpp index 71fc2d6d710..b9ce21cf70f 100644 --- a/llvm/lib/Target/SparcV8/SparcV8InstrInfo.cpp +++ b/llvm/lib/Target/SparcV8/SparcV8InstrInfo.cpp @@ -17,7 +17,6 @@ using namespace llvm; SparcV8InstrInfo::SparcV8InstrInfo() - : TargetInstrInfo(SparcV8Insts, - sizeof(SparcV8Insts)/sizeof(SparcV8Insts[0]), 0) { + : TargetInstrInfo(SparcV8Insts, sizeof(SparcV8Insts)/sizeof(SparcV8Insts[0])){ } diff --git a/llvm/lib/Target/SparcV9/SparcV9InstrInfo.cpp b/llvm/lib/Target/SparcV9/SparcV9InstrInfo.cpp index 6cb65d8374c..556e5974269 100644 --- a/llvm/lib/Target/SparcV9/SparcV9InstrInfo.cpp +++ b/llvm/lib/Target/SparcV9/SparcV9InstrInfo.cpp @@ -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(); } diff --git a/llvm/lib/Target/TargetInstrInfo.cpp b/llvm/lib/Target/TargetInstrInfo.cpp index a3131bb319f..efcf9db4eb7 100644 --- a/llvm/lib/Target/TargetInstrInfo.cpp +++ b/llvm/lib/Target/TargetInstrInfo.cpp @@ -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)"); diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp index bf26d74758f..82f613fabf4 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.cpp +++ b/llvm/lib/Target/X86/X86InstrInfo.cpp @@ -14,13 +14,11 @@ #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])) { } |