OSDN Git Service

add a friend needed by a stringmap change.
authorChris Lattner <sabre@nondot.org>
Wed, 4 Feb 2009 01:51:53 +0000 (01:51 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 4 Feb 2009 01:51:53 +0000 (01:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63706 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetAsmInfo.h

index 0e44666..b73cdb9 100644 (file)
@@ -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; }