From: Benjamin Kramer Date: Mon, 9 May 2016 18:05:28 +0000 (+0000) Subject: Unbreak the non-windows build. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6bb23fcbb96649ee424655ea14c8769d4f508a6b;p=llvm Unbreak the non-windows build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268943 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/DebugInfo/CodeView/RecordIterator.h b/include/llvm/DebugInfo/CodeView/RecordIterator.h index 050d6ad860e..f2ed8d26173 100644 --- a/include/llvm/DebugInfo/CodeView/RecordIterator.h +++ b/include/llvm/DebugInfo/CodeView/RecordIterator.h @@ -12,7 +12,7 @@ #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/iterator_range.h" -#include "llvm/support/Endian.h" +#include "llvm/Support/Endian.h" namespace llvm { namespace codeview { @@ -20,8 +20,8 @@ namespace codeview { template class RecordIterator { private: struct RecordPrefix { - support::ulittle16_t Len; // Record length, starting from &Leaf - support::ulittle16_t Kind; // Record kind (a value from the `Kind` enum). + support::ulittle16_t RecordLen; // Record length, starting from &Leaf. + support::ulittle16_t RecordKind; // Record kind (from the `Kind` enum). }; public: @@ -86,8 +86,8 @@ private: const auto *Rec = reinterpret_cast(Data.data()); Data = Data.drop_front(sizeof(RecordPrefix)); - Current.Length = Rec->Len; - Current.Type = static_cast(uint16_t(Rec->Kind)); + Current.Length = Rec->RecordLen; + Current.Type = static_cast(uint16_t(Rec->RecordKind)); Current.Data = Data.slice(0, Current.Length - 2); // The next record starts immediately after this one.