[llvm-commits] CVS: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Jan 5 12:34:01 PST 2004
Changes in directory reopt/lib/LightWtProfiling:
UnpackTraceFunction.cpp updated: 1.23 -> 1.24
---
Log message:
Unbreak this code again by passing a DefaultIntrinsicLowering instance to
the SparcTargetMachine ctor.
---
Diffs of the changes: (+3 -1)
Index: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
diff -u reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.23 reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.24
--- reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.23 Thu Dec 18 16:35:09 2003
+++ reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp Mon Jan 5 12:33:23 2004
@@ -10,6 +10,7 @@
#include "../../../../lib/CodeGen/RegAlloc/PhyRegAlloc.h"
#include "../../../../lib/Target/Sparc/SparcTargetMachine.h"
#include "../../../../lib/Target/Sparc/SparcRegInfo.h"
+#include "llvm/IntrinsicLowering.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/Support/InstIterator.h"
@@ -24,7 +25,8 @@
///
void insertCopyMachineInstrs (AllocInfo &Source, AllocInfo &Target,
MachineBasicBlock &B, const Type *Ty) {
- SparcTargetMachine TM;
+ static IntrinsicLowering *IL = new DefaultIntrinsicLowering ();
+ SparcTargetMachine TM (IL);
const TargetRegInfo &TRI = TM.getRegInfo ();
std::vector<MachineInstr *> mvec;
int RegType;
More information about the llvm-commits
mailing list