diff options
Diffstat (limited to 'include/llvm/Target/ELFTargetAsmInfo.h')
-rw-r--r-- | include/llvm/Target/ELFTargetAsmInfo.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Target/ELFTargetAsmInfo.h b/include/llvm/Target/ELFTargetAsmInfo.h index dd311c3..65a919a 100644 --- a/include/llvm/Target/ELFTargetAsmInfo.h +++ b/include/llvm/Target/ELFTargetAsmInfo.h @@ -31,6 +31,11 @@ namespace llvm { virtual const Section * getSectionForMergableConstant(uint64_t Size, unsigned ReloInfo) const; + /// getFlagsForNamedSection - If this target wants to be able to infer + /// section flags based on the name of the section specified for a global + /// variable, it can implement this. This is used on ELF systems so that + /// ".tbss" gets the TLS bit set etc. + virtual unsigned getFlagsForNamedSection(const char *Section) const; SectionKind::Kind SectionKindForGlobal(const GlobalValue *GV) const; virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const; |