llvm.org GIT mirror llvm / 5c9416e
Fix modular build issues caused by BitCodes.h Consolidate llvm::BWH_* statics into an enum to fix module build issues. This fixes the LLVM_Bitcode module, getting rid of -Wmodules-ambiguous-internal-linkage. Differential Revision: https://reviews.llvm.org/D64469 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365594 91177308-0d34-0410-b5e6-96231b3b80d8 Kristina Brooks 4 months ago
1 changed file(s) with 8 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
2323
2424 namespace llvm {
2525 /// Offsets of the 32-bit fields of bitstream wrapper header.
26 static const unsigned BWH_MagicField = 0 * 4;
27 static const unsigned BWH_VersionField = 1 * 4;
28 static const unsigned BWH_OffsetField = 2 * 4;
29 static const unsigned BWH_SizeField = 3 * 4;
30 static const unsigned BWH_CPUTypeField = 4 * 4;
31 static const unsigned BWH_HeaderSize = 5 * 4;
26 enum BitstreamWrapperHeader : unsigned {
27 BWH_MagicField = 0 * 4,
28 BWH_VersionField = 1 * 4,
29 BWH_OffsetField = 2 * 4,
30 BWH_SizeField = 3 * 4,
31 BWH_CPUTypeField = 4 * 4,
32 BWH_HeaderSize = 5 * 4
33 };
3234
3335 namespace bitc {
3436 enum StandardWidths {