[llvm-commits] CVS: llvm/include/llvm/GlobalValue.h
Jeff Cohen
jeffc at jolt-lang.org
Sun Apr 22 08:11:42 PDT 2007
Changes in directory llvm/include/llvm:
GlobalValue.h updated: 1.37 -> 1.38
---
Log message:
Implement review feedback.
---
Diffs of the changes: (+2 -2)
GlobalValue.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/include/llvm/GlobalValue.h
diff -u llvm/include/llvm/GlobalValue.h:1.37 llvm/include/llvm/GlobalValue.h:1.38
--- llvm/include/llvm/GlobalValue.h:1.37 Sat Apr 21 10:29:13 2007
+++ llvm/include/llvm/GlobalValue.h Sun Apr 22 10:11:24 2007
@@ -58,7 +58,7 @@
// 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 @@
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; }
More information about the llvm-commits
mailing list