mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-26 05:56:12 +00:00
Remove extra argument used once on TargetMachine::getNameWithPrefix and inline the result into the singular caller.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281981 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4e09440dd5
commit
a61998926f
@ -265,7 +265,7 @@ public:
|
||||
virtual bool targetSchedulesPostRAScheduling() const { return false; };
|
||||
|
||||
void getNameWithPrefix(SmallVectorImpl<char> &Name, const GlobalValue *GV,
|
||||
Mangler &Mang, bool MayAlwaysUsePrivate = false) const;
|
||||
Mangler &Mang) const;
|
||||
MCSymbol *getSymbol(const GlobalValue *GV, Mangler &Mang) const;
|
||||
|
||||
/// True if the target uses physical regs at Prolog/Epilog insertion
|
||||
|
@ -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) {
|
||||
|
@ -199,9 +199,8 @@ TargetIRAnalysis TargetMachine::getTargetIRAnalysis() {
|
||||
}
|
||||
|
||||
void TargetMachine::getNameWithPrefix(SmallVectorImpl<char> &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);
|
||||
|
Loading…
Reference in New Issue
Block a user