make PIC16 create its own custom MCSection.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78501 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2009-08-08 20:55:25 +00:00
parent 7c599d056a
commit 50e38121d1
2 changed files with 37 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
//===----------------------------------------------------------------------===//
#include "PIC16TargetObjectFile.h"
#include "PIC16Section.h"
#include "PIC16ISelLowering.h"
#include "PIC16TargetMachine.h"
#include "llvm/DerivedTypes.h"
@@ -24,7 +25,7 @@ const MCSection *PIC16TargetObjectFile::
getPIC16Section(const char *Name, bool isDirective, SectionKind Kind) const {
if (MCSection *S = getContext().GetSection(Name))
return S;
return MCSection::Create(Name, isDirective, Kind, getContext());
return MCSectionPIC16::Create(Name, isDirective, Kind, getContext());
}