Make hooks virtual

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53293 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov 2008-07-09 13:18:21 +00:00
parent 0c602469f4
commit 5555078960

View File

@ -462,18 +462,19 @@ namespace llvm {
/// SectionKindForGlobal - This hook allows the target to select proper
/// section kind used for global emission.
SectionKind::Kind SectionKindForGlobal(const GlobalValue *GV) const;
virtual SectionKind::Kind
SectionKindForGlobal(const GlobalValue *GV) const;
/// SectionFlagsForGlobal - This hook allows the target to select proper
/// section flags either for given global or for section.
unsigned
virtual unsigned
SectionFlagsForGlobal(const GlobalValue *GV = NULL,
const char* name = NULL) const;
/// SectionForGlobal - This hooks returns proper section name for given
/// global with all necessary flags and marks.
const char* SectionForGlobal(const GlobalValue *GV) const;
virtual const char* SectionForGlobal(const GlobalValue *GV) const;
// Accessors.
//