aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PIC16/PIC16TargetObjectFile.cpp
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-10-16 08:58:34 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-10-16 08:58:34 +0000
commit5386a35c5a05589276721e1b62ec2beada3c39d3 (patch)
tree178170271d6f9e90d4c53faf4a24b3600e1229d4 /lib/Target/PIC16/PIC16TargetObjectFile.cpp
parentb46aea10324263dd63492fc5c1d54800e980c8f8 (diff)
Cleaned up some code. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84251 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16/PIC16TargetObjectFile.cpp')
-rw-r--r--lib/Target/PIC16/PIC16TargetObjectFile.cpp28
1 files changed, 4 insertions, 24 deletions
diff --git a/lib/Target/PIC16/PIC16TargetObjectFile.cpp b/lib/Target/PIC16/PIC16TargetObjectFile.cpp
index 330722d4a9..11c579cc57 100644
--- a/lib/Target/PIC16/PIC16TargetObjectFile.cpp
+++ b/lib/Target/PIC16/PIC16TargetObjectFile.cpp
@@ -22,6 +22,9 @@ using namespace llvm;
PIC16TargetObjectFile::PIC16TargetObjectFile() {
}
+PIC16TargetObjectFile::~PIC16TargetObjectFile() {
+}
+
/// Find a pic16 section. If not found, create one.
PIC16Section *PIC16TargetObjectFile::
getPIC16Section(const std::string &Name, PIC16SectionType Ty,
@@ -104,19 +107,11 @@ getPIC16UserSection(const std::string &Name, PIC16SectionType Ty,
return Entry;
}
-/// Do some standard llvm stuff. PIC16 really does not need any of this.
+/// Do some standard initialization.
void PIC16TargetObjectFile::Initialize(MCContext &Ctx, const TargetMachine &tm){
TargetLoweringObjectFile::Initialize(Ctx, tm);
TM = &tm;
- // BSSSection = getPIC16DataSection("udata.#", UDATA);
- // ReadOnlySection = getPIC16DataSection("romdata.#", ROMDATA);
- // DataSection = getPIC16DataSection("idata.#", IDATA);
-
- // Need because otherwise a .text symbol is emitted by DwarfWriter
- // in BeginModule, and gpasm cribbs for that .text symbol.
- // FIXME: below
- // TextSection = getPIC16DataSection("", UDATA);
ROMDATASection_ = NULL;
}
@@ -254,22 +249,7 @@ PIC16TargetObjectFile::SelectSectionForGlobal(const GlobalValue *GV1,
return TargetLoweringObjectFile::SelectSectionForGlobal(GV, Kind, Mang,TM);
}
-PIC16TargetObjectFile::~PIC16TargetObjectFile() {
-#if 0
- for (unsigned i = 0; i < UDATASections_.size(); i++)
- delete UDATASections_[i];
- for (unsigned i = 0; i < IDATASections_.size(); i++)
- delete IDATASections_[i];
-
- delete ROMDATASection_;
- for (unsigned i = 0; i < AUTOSections_.size(); i++)
- delete AUTOSections_[i];
-
- for (unsigned i = 0; i < USERSections_.size(); i++)
- delete USERSections_[i];
-#endif
-}
/// getExplicitSectionGlobal - Allow the target to completely override