summaryrefslogtreecommitdiff
path: root/lib/Target/PIC16/PIC16Section.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-08 20:55:25 +0000
committerChris Lattner <sabre@nondot.org>2009-08-08 20:55:25 +0000
commit50e38121d1f0e7cb7aaaa3d10534095fafc50a94 (patch)
tree442450085f6a6e59e88ea79cb4f45c6d88dba490 /lib/Target/PIC16/PIC16Section.h
parent7c599d056a41262681aa7fcd771eeed53a8e0bd2 (diff)
downloadllvm-50e38121d1f0e7cb7aaaa3d10534095fafc50a94.tar.gz
llvm-50e38121d1f0e7cb7aaaa3d10534095fafc50a94.tar.bz2
llvm-50e38121d1f0e7cb7aaaa3d10534095fafc50a94.tar.xz
make PIC16 create its own custom MCSection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16/PIC16Section.h')
-rw-r--r--lib/Target/PIC16/PIC16Section.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/Target/PIC16/PIC16Section.h b/lib/Target/PIC16/PIC16Section.h
new file mode 100644
index 0000000000..c7bc9895e8
--- /dev/null
+++ b/lib/Target/PIC16/PIC16Section.h
@@ -0,0 +1,35 @@
+//===- PIC16Section.h - PIC16-specific section representation ---*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file declares the MCSection class.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_PIC16SECTION_H
+#define LLVM_PIC16SECTION_H
+
+#include "llvm/MC/MCSection.h"
+
+namespace llvm {
+
+ class MCSectionPIC16 : public MCSection {
+ MCSectionPIC16(const StringRef &Name, bool IsDirective, SectionKind K,
+ MCContext &Ctx) : MCSection(Name, IsDirective, K, Ctx) {}
+ public:
+
+ static MCSectionPIC16 *Create(const StringRef &Name, bool IsDirective,
+ SectionKind K, MCContext &Ctx);
+
+ };
+
+
+
+} // end namespace llvm
+
+#endif