mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user