[ARM] [MC] Refactor the constant pool classes
[oota-llvm.git] / lib / Target / Sparc / SparcTargetObjectFile.cpp
index b732e18d816e676af5efe4d3190b3d513beaf8a9..32b2240f87eaa53d2f9a901d1e01135e935f74b1 100644 (file)
@@ -28,8 +28,8 @@ const MCExpr *SparcELFTargetObjectFile::getTTypeGlobalReference(
     // Add information about the stub reference to ELFMMI so that the stub
     // gets emitted by the asmprinter.
     MachineModuleInfoImpl::StubValueTy &StubSym = ELFMMI.getGVStubEntry(SSym);
-    if (StubSym.getPointer() == 0) {
-      MCSymbol *Sym = TM.getTargetLowering()->getSymbol(GV, Mang);
+    if (!StubSym.getPointer()) {
+      MCSymbol *Sym = TM.getSymbol(GV, Mang);
       StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage());
     }