This fixes the build since llvm r232885 and also simplifies the code.
#endif
OwningPtr<TargetMachine> TM(T->createTargetMachine(Triple, sys::getHostCPUName(), "", options));
#endif
OwningPtr<TargetMachine> TM(T->createTargetMachine(Triple, sys::getHostCPUName(), "", options));
-#if HAVE_LLVM >= 0x0306
- const TargetInstrInfo *TII = TM->getSubtargetImpl()->getInstrInfo();
-#else
- const TargetInstrInfo *TII = TM->getInstrInfo();
-#endif
-
/*
* Wrap the data in a MemoryObject
*/
/*
* Wrap the data in a MemoryObject
*/
- const MCInstrDesc &TID = TII->get(Inst.getOpcode());
+ const MCInstrDesc &TID = MII->get(Inst.getOpcode());
/*
* Keep track of forward jumps to a nearby address.
/*
* Keep track of forward jumps to a nearby address.