diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-07-09 13:18:21 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-07-09 13:18:21 +0000 |
commit | 555507896038323b5d8396279ed7a8cf46c4710e (patch) | |
tree | 17bbe551a13d38e48d02f55885758ce9db11d97d /include/llvm/Target/TargetAsmInfo.h | |
parent | 0c602469f4e99a5775aebce16045f7c2598471e4 (diff) | |
download | external_llvm-555507896038323b5d8396279ed7a8cf46c4710e.zip external_llvm-555507896038323b5d8396279ed7a8cf46c4710e.tar.gz external_llvm-555507896038323b5d8396279ed7a8cf46c4710e.tar.bz2 |
Make hooks virtual
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53293 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetAsmInfo.h')
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 3f7dbc7..7656ad6 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. // |