summaryrefslogtreecommitdiff
path: root/include/llvm/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-13 00:37:15 +0000
committerChris Lattner <sabre@nondot.org>2009-08-13 00:37:15 +0000
commit38cff389af1d78bd80df0479ef258493e0c5897e (patch)
tree7bbbecb058efb77eaf4ab59aac1f6c8a8e168e72 /include/llvm/Target
parentf991ecf7231436437f6de1a22e93d0a1b380e078 (diff)
downloadllvm-38cff389af1d78bd80df0479ef258493e0c5897e.tar.gz
llvm-38cff389af1d78bd80df0479ef258493e0c5897e.tar.bz2
llvm-38cff389af1d78bd80df0479ef258493e0c5897e.tar.xz
sink uniquing of sections out of MCContext into the ELF and PECOFF TLOF implementations.
MCContext no longer maintains a string -> section map. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78874 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r--include/llvm/Target/TargetLoweringObjectFile.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetLoweringObjectFile.h b/include/llvm/Target/TargetLoweringObjectFile.h
index 7f74c6b055..102928b659 100644
--- a/include/llvm/Target/TargetLoweringObjectFile.h
+++ b/include/llvm/Target/TargetLoweringObjectFile.h
@@ -183,6 +183,7 @@ protected:
class TargetLoweringObjectFileELF : public TargetLoweringObjectFile {
bool HasCrazyBSS;
+ mutable void *UniquingMap;
protected:
/// TLSDataSection - Section directive for Thread Local data.
///
@@ -208,7 +209,10 @@ protected:
public:
TargetLoweringObjectFileELF(// FIXME: REMOVE AFTER UNIQUING IS FIXED.
bool hasCrazyBSS = false)
- : HasCrazyBSS(hasCrazyBSS) {}
+ : HasCrazyBSS(hasCrazyBSS), UniquingMap(0) {}
+
+ ~TargetLoweringObjectFileELF();
+
virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
@@ -302,7 +306,11 @@ public:
class TargetLoweringObjectFileCOFF : public TargetLoweringObjectFile {
+ mutable void *UniquingMap;
public:
+ TargetLoweringObjectFileCOFF() : UniquingMap(0) {}
+ ~TargetLoweringObjectFileCOFF();
+
virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
virtual const MCSection *