From: Chris Lattner Date: Sat, 15 Aug 2009 06:13:40 +0000 (+0000) Subject: rename PIC16Section.h -> MCSectionPIC16.h for consistency with X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c077621e136bccb20345dbaa122b536eeb6a2881;p=oota-llvm.git rename PIC16Section.h -> MCSectionPIC16.h for consistency with the class it defines. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79081 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp b/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp index 3dab34fdab7..8dbfffc6e6a 100644 --- a/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp +++ b/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp @@ -13,7 +13,7 @@ //===----------------------------------------------------------------------===// #include "PIC16AsmPrinter.h" -#include "PIC16Section.h" +#include "MCSectionPIC16.h" #include "PIC16TargetAsmInfo.h" #include "llvm/DerivedTypes.h" #include "llvm/Function.h" diff --git a/lib/Target/PIC16/MCSectionPIC16.h b/lib/Target/PIC16/MCSectionPIC16.h new file mode 100644 index 00000000000..0a2d09145c3 --- /dev/null +++ b/lib/Target/PIC16/MCSectionPIC16.h @@ -0,0 +1,41 @@ +//===- 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 { + std::string Name; + + MCSectionPIC16(const StringRef &name, SectionKind K) + : MCSection(K), Name(name) { + } + + public: + + const std::string &getName() const { return Name; } + + static MCSectionPIC16 *Create(const StringRef &Name, + SectionKind K, MCContext &Ctx); + + virtual void PrintSwitchToSection(const TargetAsmInfo &TAI, + raw_ostream &OS) const; + }; + +} // end namespace llvm + +#endif diff --git a/lib/Target/PIC16/PIC16Section.h b/lib/Target/PIC16/PIC16Section.h deleted file mode 100644 index 0a2d09145c3..00000000000 --- a/lib/Target/PIC16/PIC16Section.h +++ /dev/null @@ -1,41 +0,0 @@ -//===- 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 { - std::string Name; - - MCSectionPIC16(const StringRef &name, SectionKind K) - : MCSection(K), Name(name) { - } - - public: - - const std::string &getName() const { return Name; } - - static MCSectionPIC16 *Create(const StringRef &Name, - SectionKind K, MCContext &Ctx); - - virtual void PrintSwitchToSection(const TargetAsmInfo &TAI, - raw_ostream &OS) const; - }; - -} // end namespace llvm - -#endif diff --git a/lib/Target/PIC16/PIC16TargetObjectFile.cpp b/lib/Target/PIC16/PIC16TargetObjectFile.cpp index aa865bfb509..07d8381800a 100644 --- a/lib/Target/PIC16/PIC16TargetObjectFile.cpp +++ b/lib/Target/PIC16/PIC16TargetObjectFile.cpp @@ -8,7 +8,7 @@ //===----------------------------------------------------------------------===// #include "PIC16TargetObjectFile.h" -#include "PIC16Section.h" +#include "MCSectionPIC16.h" #include "PIC16ISelLowering.h" #include "PIC16TargetMachine.h" #include "llvm/DerivedTypes.h"