[llvm-commits] CVS: llvm/lib/Target/MachineInstrInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 29 09:46:01 PST 2002
Changes in directory llvm/lib/Target:
MachineInstrInfo.cpp updated: 1.1 -> 1.2
---
Log message:
MachineInstrInfo doesn't need a TargetMachine
---
Diffs of the changes:
Index: llvm/lib/Target/MachineInstrInfo.cpp
diff -u llvm/lib/Target/MachineInstrInfo.cpp:1.1 llvm/lib/Target/MachineInstrInfo.cpp:1.2
--- llvm/lib/Target/MachineInstrInfo.cpp:1.1 Mon Oct 28 17:55:33 2002
+++ llvm/lib/Target/MachineInstrInfo.cpp Tue Oct 29 09:45:18 2002
@@ -15,11 +15,10 @@
//---------------------------------------------------------------------------
-MachineInstrInfo::MachineInstrInfo(const TargetMachine& tgt,
- const MachineInstrDescriptor* Desc,
+MachineInstrInfo::MachineInstrInfo(const MachineInstrDescriptor* Desc,
unsigned DescSize,
unsigned NumRealOpCodes)
- : target(tgt), desc(Desc), descSize(DescSize), numRealOpCodes(NumRealOpCodes) {
+ : desc(Desc), descSize(DescSize), numRealOpCodes(NumRealOpCodes) {
// FIXME: TargetInstrDescriptors should not be global
assert(TargetInstrDescriptors == NULL && desc != NULL);
TargetInstrDescriptors = desc; // initialize global variable
More information about the llvm-commits
mailing list