mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
TargetAsmInfo::SectionForGlobal showed up in a profile. Simplify it a little.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53639 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4093d83010
commit
9c578eb223
@ -273,15 +273,13 @@ TargetAsmInfo::SectionForGlobal(const GlobalValue *GV) const {
|
||||
S = SelectSectionForGlobal(GV);
|
||||
}
|
||||
|
||||
std::string Name = S->Name;
|
||||
if (!S->isNamed())
|
||||
return S->Name;
|
||||
|
||||
// If section is named we need to switch into it via special '.section'
|
||||
// directive and also append funky flags. Otherwise - section name is just
|
||||
// some magic assembler directive.
|
||||
if (S->isNamed())
|
||||
Name = getSwitchToSectionDirective() + Name + PrintSectionFlags(S->Flags);
|
||||
|
||||
return Name;
|
||||
return getSwitchToSectionDirective() + S->Name + PrintSectionFlags(S->Flags);
|
||||
}
|
||||
|
||||
// Lame default implementation. Calculate the section name for global.
|
||||
|
Loading…
x
Reference in New Issue
Block a user