[PATCH] D64469: Fixing modular build issues caused by BitCodes.h

Kristina Brooks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 20:52:31 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL365594: Fix modular build issues caused by BitCodes.h (authored by kristina, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D64469?vs=208874&id=208876#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64469/new/

https://reviews.llvm.org/D64469

Files:
  llvm/trunk/include/llvm/Bitstream/BitCodes.h


Index: llvm/trunk/include/llvm/Bitstream/BitCodes.h
===================================================================
--- llvm/trunk/include/llvm/Bitstream/BitCodes.h
+++ llvm/trunk/include/llvm/Bitstream/BitCodes.h
@@ -24,12 +24,14 @@
 
 namespace llvm {
 /// Offsets of the 32-bit fields of bitstream wrapper header.
-static const unsigned BWH_MagicField = 0 * 4;
-static const unsigned BWH_VersionField = 1 * 4;
-static const unsigned BWH_OffsetField = 2 * 4;
-static const unsigned BWH_SizeField = 3 * 4;
-static const unsigned BWH_CPUTypeField = 4 * 4;
-static const unsigned BWH_HeaderSize = 5 * 4;
+enum BitstreamWrapperHeader : unsigned {
+  BWH_MagicField   = 0 * 4,
+  BWH_VersionField = 1 * 4,
+  BWH_OffsetField  = 2 * 4,
+  BWH_SizeField    = 3 * 4,
+  BWH_CPUTypeField = 4 * 4,
+  BWH_HeaderSize   = 5 * 4
+};
 
 namespace bitc {
   enum StandardWidths {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64469.208876.patch
Type: text/x-patch
Size: 871 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190710/2fda4fe6/attachment.bin>


More information about the llvm-commits mailing list