summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86MCInstLower.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2014-12-02 18:06:10 +0000
committerPhilip Reames <listmail@philipreames.com>2014-12-02 18:06:10 +0000
commitf7a104254aa1d9cb26136accce3dbf5aca2233b2 (patch)
treecf13d2d0070cbc03224e3e6d4cd9fed19c8b9dd8 /llvm/lib/Target/X86/X86MCInstLower.cpp
parent392b715caff774574db90bba98e7d028074b4d50 (diff)
downloadbcm5719-llvm-f7a104254aa1d9cb26136accce3dbf5aca2233b2.tar.gz
bcm5719-llvm-f7a104254aa1d9cb26136accce3dbf5aca2233b2.zip
Remove unneccessary code introduced with 223101.
llvm-svn: 223132
Diffstat (limited to 'llvm/lib/Target/X86/X86MCInstLower.cpp')
-rw-r--r--llvm/lib/Target/X86/X86MCInstLower.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/llvm/lib/Target/X86/X86MCInstLower.cpp b/llvm/lib/Target/X86/X86MCInstLower.cpp
index b853110fac3..74b60bbc5bf 100644
--- a/llvm/lib/Target/X86/X86MCInstLower.cpp
+++ b/llvm/lib/Target/X86/X86MCInstLower.cpp
@@ -815,15 +815,6 @@ static void LowerSTATEPOINT(MCStreamer &OS, StackMaps &SM,
X86MCInstLower &MCInstLowering) {
assert(Is64Bit && "Statepoint currently only supports X86-64");
- // We need to record the frame size for stack walking
- const MachineFunction *MF = MI.getParent()->getParent();
- assert(MF && "can't find machine function?");
- (void)MF;
-
- //
- // Emit call instruction
- //
-
// Lower call target and choose correct opcode
const MachineOperand &call_target = StatepointOpers(&MI).getCallTarget();
MCOperand call_target_mcop;
@@ -1093,7 +1084,8 @@ void X86AsmPrinter::EmitInstruction(const MachineInstr *MI) {
}
case TargetOpcode::STATEPOINT:
return LowerSTATEPOINT(OutStreamer, SM, *MI, Subtarget->is64Bit(), TM,
- getSubtargetInfo(), MCInstLowering);
+ getSubtargetInfo(), MCInstLowering);
+
case TargetOpcode::STACKMAP:
return LowerSTACKMAP(*MI);
OpenPOWER on IntegriCloud