diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2007-04-21 15:29:13 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2007-04-21 15:29:13 +0000 |
commit | fa12f9d64a3fb5bf7b5027eb0e7608cad1bc74be (patch) | |
tree | be0b6b91f27e2759251e60e95c499864ed7e1537 | |
parent | a30107fb032a72bfb266aa72f515ee3a2943f77c (diff) | |
download | bcm5719-llvm-fa12f9d64a3fb5bf7b5027eb0e7608cad1bc74be.tar.gz bcm5719-llvm-fa12f9d64a3fb5bf7b5027eb0e7608cad1bc74be.zip |
Fix breakage of bytecode reader when built with VC++.
llvm-svn: 36303
-rw-r--r-- | llvm/include/llvm/GlobalValue.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/GlobalValue.h b/llvm/include/llvm/GlobalValue.h index 9dab3f82f08..ae122a90d7b 100644 --- a/llvm/include/llvm/GlobalValue.h +++ b/llvm/include/llvm/GlobalValue.h @@ -55,8 +55,10 @@ protected: } Module *Parent; - LinkageTypes Linkage : 4; // The linkage of this global - VisibilityTypes Visibility : 1; // The visibility style of this global + // 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 Alignment : 16; // Alignment of this symbol, must be power of two std::string Section; // Section to emit this into, empty mean default public: |