diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-04 01:51:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-04 01:51:53 +0000 |
commit | e3f5a276ecd3c8957c7cd303d558fb89db478223 (patch) | |
tree | 5ee51201f1e0a0ae762dfd7354bed4678c03739a /include/llvm/Target/TargetAsmInfo.h | |
parent | 85fc093918bb2bcb76d5ff8ef53d5f36f5515286 (diff) | |
download | external_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.h | 4 |
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; } |