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/Target/TargetMachine.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Target/TargetMachine.cpp') diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp index 17caed97391..47c5a56ce09 100644 --- a/llvm/lib/Target/TargetMachine.cpp +++ b/llvm/lib/Target/TargetMachine.cpp @@ -199,9 +199,8 @@ TargetIRAnalysis TargetMachine::getTargetIRAnalysis() { } void TargetMachine::getNameWithPrefix(SmallVectorImpl &Name, - const GlobalValue *GV, Mangler &Mang, - bool MayAlwaysUsePrivate) const { - if (MayAlwaysUsePrivate || !GV->hasPrivateLinkage()) { + const GlobalValue *GV, Mangler &Mang) const { + if (!GV->hasPrivateLinkage()) { // Simple case: If GV is not private, it is not important to find out if // private labels are legal in this case or not. Mang.getNameWithPrefix(Name, GV, false); -- cgit v1.2.3