MC: Take MCSymbol in MachObjectWriter::getSymbolAddress(), NFC
[oota-llvm.git] / lib / Target / AArch64 / AArch64FrameLowering.cpp
index 7146f592a96ac08cf4fb66bdeff4dd79e31b6058..3ba7e70a102dba1a5a01d75056ea55dfab711318 100644 (file)
@@ -161,7 +161,7 @@ void AArch64FrameLowering::eliminateCallFramePseudoInstr(
   const AArch64InstrInfo *TII =
       static_cast<const AArch64InstrInfo *>(MF.getSubtarget().getInstrInfo());
   DebugLoc DL = I->getDebugLoc();
-  int Opc = I->getOpcode();
+  unsigned Opc = I->getOpcode();
   bool IsDestroy = Opc == TII->getCallFrameDestroyOpcode();
   uint64_t CalleePopAmount = IsDestroy ? I->getOperand(1).getImm() : 0;
 
@@ -302,7 +302,7 @@ void AArch64FrameLowering::emitPrologue(MachineFunction &MF,
     AFI->setLocalStackSize(NumBytes);
 
     // Label used to tie together the PROLOG_LABEL and the MachineMoves.
-    MCSymbol *FrameLabel = MMI.getContext().CreateTempSymbol();
+    MCSymbol *FrameLabel = MMI.getContext().createTempSymbol();
 
     // REDZONE: If the stack size is less than 128 bytes, we don't need
     // to actually allocate.