mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
Add a method to return if the ELF section contains only common symbols!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78937 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -121,3 +121,13 @@ void MCSectionELF::PrintSwitchToSection(const TargetAsmInfo &TAI,
|
||||
OS << '\n';
|
||||
}
|
||||
|
||||
// IsCommon - True if this section contains only common symbols
|
||||
bool MCSectionELF::IsCommon() const {
|
||||
|
||||
if (strncmp(SectionName.c_str(), ".gnu.linkonce.", 14) == 0)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user