From 555507896038323b5d8396279ed7a8cf46c4710e Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Wed, 9 Jul 2008 13:18:21 +0000 Subject: [PATCH] Make hooks virtual git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53293 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetAsmInfo.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 3f7dbc7206d..7656ad67e91 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -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. //