aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetAsmInfo.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-04 01:51:53 +0000
committerChris Lattner <sabre@nondot.org>2009-02-04 01:51:53 +0000
commite3f5a276ecd3c8957c7cd303d558fb89db478223 (patch)
tree5ee51201f1e0a0ae762dfd7354bed4678c03739a /include/llvm/Target/TargetAsmInfo.h
parent85fc093918bb2bcb76d5ff8ef53d5f36f5515286 (diff)
downloadexternal_llvm-e3f5a276ecd3c8957c7cd303d558fb89db478223.zip
external_llvm-e3f5a276ecd3c8957c7cd303d558fb89db478223.tar.gz
external_llvm-e3f5a276ecd3c8957c7cd303d558fb89db478223.tar.bz2
add a friend needed by a stringmap change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63706 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetAsmInfo.h')
-rw-r--r--include/llvm/Target/TargetAsmInfo.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h
index 0e44666..b73cdb9 100644
--- a/include/llvm/Target/TargetAsmInfo.h
+++ b/include/llvm/Target/TargetAsmInfo.h
@@ -105,12 +105,14 @@ namespace llvm {
class Section {
friend class TargetAsmInfo;
friend class StringMapEntry<Section>;
+ friend class StringMap<Section>;
std::string Name;
unsigned Flags;
-
explicit Section(unsigned F = SectionFlags::Invalid):Flags(F) { }
+
public:
+
bool isNamed() const { return Flags & SectionFlags::Named; }
unsigned getEntitySize() const { return (Flags >> 24) & 0xFF; }