summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
diff options
context:
space:
mode:
authorCharles Davis <cdavis5x@gmail.com>2016-08-08 21:20:15 +0000
committerCharles Davis <cdavis5x@gmail.com>2016-08-08 21:20:15 +0000
commite9c32c7ed3d587696b9757f8f5151c914df2aff5 (patch)
tree4bafffe7bd125db9866f668cde0b04fafa1bc5b0 /llvm/lib/Target/X86/X86TargetTransformInfo.cpp
parent0e37911334775fe64070ba38e2642b35b5c38cb6 (diff)
downloadbcm5719-llvm-e9c32c7ed3d587696b9757f8f5151c914df2aff5.tar.gz
bcm5719-llvm-e9c32c7ed3d587696b9757f8f5151c914df2aff5.zip
Revert "[X86] Support the "ms-hotpatch" attribute."
This reverts commit r278048. Something changed between the last time I built this--it takes awhile on my ridiculously slow and ancient computer--and now that broke this. llvm-svn: 278053
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetTransformInfo.cpp')
-rw-r--r--llvm/lib/Target/X86/X86TargetTransformInfo.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
index 453afc00e9f..657a0451719 100644
--- a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
+++ b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
@@ -1681,18 +1681,3 @@ bool X86TTIImpl::areInlineCompatible(const Function *Caller,
// correct.
return (CallerBits & CalleeBits) == CalleeBits;
}
-
-void X86TTIImpl::emitPatchableOp(StringRef PatchType,
- MachineBasicBlock &MBB,
- MachineBasicBlock::iterator &MBBI) const {
- if (PatchType != "ms-hotpatch" || !ST->is32Bit()) {
- BaseT::emitPatchableOp(PatchType, MBB, MBBI);
- return;
- }
-
- auto &TII = *MBB.getParent()->getSubtarget().getInstrInfo();
- BuildMI(MBB, MBBI, MBBI->getDebugLoc(),
- TII.get(X86::MOV32rr_REV), X86::EDI)
- .addReg(X86::EDI)
- .setMIFlag(MachineInstr::FrameSetup);
-}
OpenPOWER on IntegriCloud