aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCSectionMachO.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-08 20:30:37 +0000
committerChris Lattner <sabre@nondot.org>2010-04-08 20:30:37 +0000
commitf0559e4b242e85d4b9d1dd08758814c599bdce13 (patch)
tree34a32e10829a20b60ac0167daabec94e2bb351d5 /include/llvm/MC/MCSectionMachO.h
parenta57fabe815ccf016eead526eb3ef475f116ab155 (diff)
downloadexternal_llvm-f0559e4b242e85d4b9d1dd08758814c599bdce13.tar.gz
external_llvm-f0559e4b242e85d4b9d1dd08758814c599bdce13.tar.bz2
external_llvm-f0559e4b242e85d4b9d1dd08758814c599bdce13.zip
move macho section uniquing from MCParser and TLOF to MCContext where
the compiler and asmparser now unique to the same sections. This fixes rdar://7835021. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100807 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCSectionMachO.h')
-rw-r--r--include/llvm/MC/MCSectionMachO.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/MC/MCSectionMachO.h b/include/llvm/MC/MCSectionMachO.h
index 5839c281ed..465013c880 100644
--- a/include/llvm/MC/MCSectionMachO.h
+++ b/include/llvm/MC/MCSectionMachO.h
@@ -50,7 +50,6 @@ class MCSectionMachO : public MCSection {
SectionName[i] = 0;
}
}
-public:
static MCSectionMachO *Create(StringRef Segment,
StringRef Section,
@@ -58,6 +57,9 @@ public:
unsigned Reserved2,
SectionKind K, MCContext &Ctx);
+ friend class MCContext;
+public:
+
/// These are the section type and attributes fields. A MachO section can
/// have only one Type, but can have any of the attributes specified.
enum {