summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PIC16/PIC16TargetObjectFile.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-13 00:26:52 +0000
committerChris Lattner <sabre@nondot.org>2009-08-13 00:26:52 +0000
commit5ed8c4212ac37c98139ccc19d86333c6ae9a150f (patch)
treee0b7db232304aec030bdfb54984183458784c30a /llvm/lib/Target/PIC16/PIC16TargetObjectFile.h
parentb691316838646a0b6ea9743fe23683e650740290 (diff)
downloadbcm5719-llvm-5ed8c4212ac37c98139ccc19d86333c6ae9a150f.tar.gz
bcm5719-llvm-5ed8c4212ac37c98139ccc19d86333c6ae9a150f.zip
make PIC16 unique its own sections instead of having mcontext do it.
llvm-svn: 78871
Diffstat (limited to 'llvm/lib/Target/PIC16/PIC16TargetObjectFile.h')
-rw-r--r--llvm/lib/Target/PIC16/PIC16TargetObjectFile.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16TargetObjectFile.h b/llvm/lib/Target/PIC16/PIC16TargetObjectFile.h
index 91415bc7658..1c6d9cf3884 100644
--- a/llvm/lib/Target/PIC16/PIC16TargetObjectFile.h
+++ b/llvm/lib/Target/PIC16/PIC16TargetObjectFile.h
@@ -11,6 +11,7 @@
#define LLVM_TARGET_PIC16_TARGETOBJECTFILE_H
#include "llvm/Target/TargetLoweringObjectFile.h"
+#include "llvm/ADT/StringMap.h"
#include <vector>
#include <string>
@@ -46,6 +47,9 @@ namespace llvm {
};
class PIC16TargetObjectFile : public TargetLoweringObjectFile {
+ /// SectionsByName - Bindings of names to allocated sections.
+ mutable StringMap<MCSectionPIC16*> SectionsByName;
+
const TargetMachine *TM;
const MCSectionPIC16 *getPIC16Section(const char *Name,
OpenPOWER on IntegriCloud