From 0be7793d75378163f6f6e4724c94370971d342a0 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 20 Sep 2016 16:04:50 +0000 Subject: Remove extra argument used once on TargetMachine::getNameWithPrefix and inline the result into the singular caller. llvm-svn: 281981 --- llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp') diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index bbeb5552527..b92ffde2319 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -296,7 +296,7 @@ selectELFSectionForGlobal(MCContext &Ctx, const GlobalValue *GV, if (EmitUniqueSection && UniqueSectionNames) { Name.push_back('.'); - TM.getNameWithPrefix(Name, GV, Mang, true); + Mang.getNameWithPrefix(Name, GV, false); } unsigned UniqueID = MCContext::GenericSectionID; if (EmitUniqueSection && !UniqueSectionNames) { -- cgit v1.2.3