simplify getPICBaseSymbol a bit.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119088 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp
index 1c5c510..103c70b 100644
--- a/lib/Target/X86/X86ISelLowering.cpp
+++ b/lib/Target/X86/X86ISelLowering.cpp
@@ -1104,11 +1104,12 @@
 
 /// getPICBaseSymbol - Return the X86-32 PIC base.
 MCSymbol *
-X86TargetLowering::getPICBaseSymbol(const MachineFunction *MF,
-                                    MCContext &Ctx) const {
+X86TargetLowering::getPICBaseSymbol(const MachineFunction &MF) const {
+  
   const MCAsmInfo &MAI = *getTargetMachine().getMCAsmInfo();
+  MCContext &Ctx = MF.getContext();
   return Ctx.GetOrCreateSymbol(Twine(MAI.getPrivateGlobalPrefix())+
-                               Twine(MF->getFunctionNumber())+"$pb");
+                               Twine(MF.getFunctionNumber())+"$pb");
 }
 
 
@@ -1146,7 +1147,7 @@
     return TargetLowering::getPICJumpTableRelocBaseExpr(MF, JTI, Ctx);
 
   // Otherwise, the reference is relative to the PIC base.
-  return MCSymbolRefExpr::Create(getPICBaseSymbol(MF, Ctx), Ctx);
+  return MCSymbolRefExpr::Create(getPICBaseSymbol(*MF), Ctx);
 }
 
 /// getFunctionAlignment - Return the Log2 alignment of this function.