Implement review feedback.
authorJeff Cohen <jeffc@jolt-lang.org>
Sun, 22 Apr 2007 15:11:24 +0000 (15:11 +0000)
committerJeff Cohen <jeffc@jolt-lang.org>
Sun, 22 Apr 2007 15:11:24 +0000 (15:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36342 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/GlobalValue.h

index ae122a90d7be134d546c46556282852786878c79..a20c05800404d1915eafbed3919e286c5d354396 100644 (file)
@@ -58,7 +58,7 @@ protected:
   // Note: VC++ treats enums as signed, so an extra bit is required to prevent
   // Linkage and Visibility from turning into negative values.
   LinkageTypes Linkage : 5;   // The linkage of this global
-  VisibilityTypes Visibility : 2;  // The visibility style of this global
+  unsigned Visibility : 1;    // The visibility style of this global
   unsigned Alignment : 16;    // Alignment of this symbol, must be power of two
   std::string Section;        // Section to emit this into, empty mean default
 public:
@@ -72,7 +72,7 @@ public:
     Alignment = Align;
   }
 
-  VisibilityTypes getVisibility() const { return Visibility; }
+  VisibilityTypes getVisibility() const { return (VisibilityTypes)Visibility; }
   bool hasHiddenVisibility() const { return Visibility == HiddenVisibility; }
   void setVisibility(VisibilityTypes V) { Visibility = V; }