move ELF-specific code into ELFTargetAsmInfo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76976 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2009-07-24 17:02:17 +00:00
parent e5ca0ac36b
commit 2dcafe4b8f
4 changed files with 40 additions and 26 deletions

View File

@@ -586,7 +586,13 @@ namespace llvm {
virtual const char *
getSectionPrefixForUniqueGlobal(SectionKind::Kind Kind) 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 {
return 0;
}
/// SectionKindForGlobal - This hook allows the target to select proper