mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-27 14:32:21 +00:00
There is no need to pass the name into lib/Target/TargetAsmInfo.cpp
when we have a global with no section explicitly specified. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76971 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d0418ce890
commit
3df6d5d83b
@ -302,7 +302,7 @@ const Section *TargetAsmInfo::SectionForGlobal(const GlobalValue *GV) const {
|
||||
getSectionPrefixForUniqueGlobal(SectionKindForGlobal(GV))) {
|
||||
// FIXME: Use mangler interface (PR4584).
|
||||
std::string Name = Prefix+GV->getNameStr();
|
||||
unsigned Flags = SectionFlagsForGlobal(GV, Name.c_str());
|
||||
unsigned Flags = SectionFlagsForGlobal(GV);
|
||||
return getNamedSection(Name.c_str(), Flags);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user