diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-06 16:39:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-06 16:39:58 +0000 |
commit | 24f654c8a4d14066233480f683d3b0dececf374a (patch) | |
tree | 8fc582c6e608f042aaeee1d7d6601747acf44d82 /lib/Target/PIC16/PIC16TargetObjectFile.h | |
parent | e0161ea1050fd4107f3307b1e25b3aac02c2ba16 (diff) |
Fix several fixmes and clean up code by sinking *all* section
creation activity into the target-specific subclasses of TLOF.
Before this, globals with explicit sections could be created by
the base class.
1. make getOrCreateSection protected, add a new getExplicitSectionGlobal
pure virtual method to assign sections to globals with a specified
section.
2. eliminate getSpecialCasedSectionGlobals, which is now PIC specific.
3. eliminate the getKindForNamedSection virtual method, which is
now just a static method for ELF.
4. Add implementions of getExplicitSectionGlobal for ELF/PECOFF/Darwin/PIC16.
They are now all detangled and understandable, woo! :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78319 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16/PIC16TargetObjectFile.h')
-rw-r--r-- | lib/Target/PIC16/PIC16TargetObjectFile.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Target/PIC16/PIC16TargetObjectFile.h b/lib/Target/PIC16/PIC16TargetObjectFile.h index 6cc7054e63..c2611087b5 100644 --- a/lib/Target/PIC16/PIC16TargetObjectFile.h +++ b/lib/Target/PIC16/PIC16TargetObjectFile.h @@ -59,11 +59,9 @@ namespace llvm { void Initialize(MCContext &Ctx, const TargetMachine &TM); - /// getSpecialCasedSectionGlobals - Allow the target to completely override - /// section assignment of a global. virtual const MCSection * - getSpecialCasedSectionGlobals(const GlobalValue *GV, Mangler *Mang, - SectionKind Kind) const; + getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, + Mangler *Mang, const TargetMachine &TM) const; virtual const MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, |