[llvm] r268943 - Unbreak the non-windows build.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Mon May 9 11:05:31 PDT 2016
Author: d0k
Date: Mon May 9 13:05:28 2016
New Revision: 268943
URL: http://llvm.org/viewvc/llvm-project?rev=268943&view=rev
Log:
Unbreak the non-windows build.
Modified:
llvm/trunk/include/llvm/DebugInfo/CodeView/RecordIterator.h
Modified: llvm/trunk/include/llvm/DebugInfo/CodeView/RecordIterator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/CodeView/RecordIterator.h?rev=268943&r1=268942&r2=268943&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo/CodeView/RecordIterator.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/CodeView/RecordIterator.h Mon May 9 13:05:28 2016
@@ -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 <typename Kind> 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<const RecordPrefix *>(Data.data());
Data = Data.drop_front(sizeof(RecordPrefix));
- Current.Length = Rec->Len;
- Current.Type = static_cast<Kind>(uint16_t(Rec->Kind));
+ Current.Length = Rec->RecordLen;
+ Current.Type = static_cast<Kind>(uint16_t(Rec->RecordKind));
Current.Data = Data.slice(0, Current.Length - 2);
// The next record starts immediately after this one.
More information about the llvm-commits
mailing list