[llvm] r223132 - Remove unneccessary code introduced with 223101.

Philip Reames listmail at philipreames.com
Tue Dec 2 10:06:10 PST 2014


Author: reames
Date: Tue Dec  2 12:06:10 2014
New Revision: 223132

URL: http://llvm.org/viewvc/llvm-project?rev=223132&view=rev
Log:
Remove unneccessary code introduced with 223101.


Modified:
    llvm/trunk/lib/Target/X86/X86MCInstLower.cpp

Modified: llvm/trunk/lib/Target/X86/X86MCInstLower.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86MCInstLower.cpp?rev=223132&r1=223131&r2=223132&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86MCInstLower.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86MCInstLower.cpp Tue Dec  2 12:06:10 2014
@@ -815,15 +815,6 @@ static void LowerSTATEPOINT(MCStreamer &
                             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(cons
   }
   case TargetOpcode::STATEPOINT:
     return LowerSTATEPOINT(OutStreamer, SM, *MI, Subtarget->is64Bit(), TM,
-      getSubtargetInfo(), MCInstLowering);
+                           getSubtargetInfo(), MCInstLowering);
+    
   case TargetOpcode::STACKMAP:
     return LowerSTACKMAP(*MI);
 





More information about the llvm-commits mailing list