summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-02-08 14:53:28 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-02-08 14:53:28 +0000
commitfa0f72837f98fd13fb2dfee1712be4a8b13b0260 (patch)
treee273826acddef8931f15d8a32df7d5c264b8e246 /llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp
parentbfc57f8370ea39e936b9bb41456fd8d60c0f3108 (diff)
downloadbcm5719-llvm-fa0f72837f98fd13fb2dfee1712be4a8b13b0260.tar.gz
bcm5719-llvm-fa0f72837f98fd13fb2dfee1712be4a8b13b0260.zip
Pass the Mangler by reference.
It is never null and it is not used in casts, so there is no reason to use a pointer. This matches how we pass TM. llvm-svn: 201025
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp')
-rw-r--r--llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp b/llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp
index 4913ea75fd9..f7cefd0b635 100644
--- a/llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp
+++ b/llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp
@@ -16,20 +16,20 @@ using namespace llvm;
const MCExpr *SparcELFTargetObjectFile::
-getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
+getTTypeGlobalReference(const GlobalValue *GV, Mangler &Mang,
MachineModuleInfo *MMI, unsigned Encoding,
MCStreamer &Streamer) const {
if (Encoding & dwarf::DW_EH_PE_pcrel) {
MachineModuleInfoELF &ELFMMI = MMI->getObjFileInfo<MachineModuleInfoELF>();
- MCSymbol *SSym = getSymbolWithGlobalValueBase(*Mang, GV, ".DW.stub");
+ MCSymbol *SSym = getSymbolWithGlobalValueBase(Mang, GV, ".DW.stub");
// 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 = getSymbol(*Mang, GV);
+ MCSymbol *Sym = getSymbol(Mang, GV);
StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage());
}
OpenPOWER on IntegriCloud