Make hooks virtual
authorAnton Korobeynikov <asl@math.spbu.ru>
Wed, 9 Jul 2008 13:18:21 +0000 (13:18 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Wed, 9 Jul 2008 13:18:21 +0000 (13:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53293 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetAsmInfo.h

index 3f7dbc7206db403fd24b12656aefc0e41b11c4eb..7656ad67e91b960abcace44a4b634d034d5b1aa1 100644 (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.
     //