From 7bd81ba05b06d1ff947d8557b2ae9c52d04c0bfd Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 2 Oct 2014 22:13:44 +0000 Subject: [PATCH] Rename data -> Data git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218916 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Object/COFF.h | 8 ++++---- tools/llvm-objdump/COFFDump.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/llvm/Object/COFF.h b/include/llvm/Object/COFF.h index b59e5de4bd1..8dc4d52bb5d 100644 --- a/include/llvm/Object/COFF.h +++ b/include/llvm/Object/COFF.h @@ -164,18 +164,18 @@ struct import_directory_table_entry { template struct import_lookup_table_entry { - IntTy data; + IntTy Data; - bool isOrdinal() const { return data < 0; } + bool isOrdinal() const { return Data < 0; } uint16_t getOrdinal() const { assert(isOrdinal() && "ILT entry is not an ordinal!"); - return data & 0xFFFF; + return Data & 0xFFFF; } uint32_t getHintNameRVA() const { assert(!isOrdinal() && "ILT entry is not a Hint/Name RVA!"); - return data & 0xFFFFFFFF; + return Data & 0xFFFFFFFF; } }; diff --git a/tools/llvm-objdump/COFFDump.cpp b/tools/llvm-objdump/COFFDump.cpp index 818969114ba..4a20b91b71f 100644 --- a/tools/llvm-objdump/COFFDump.cpp +++ b/tools/llvm-objdump/COFFDump.cpp @@ -322,7 +322,7 @@ static void printImportTables(const COFFObjectFile *Obj) { const import_lookup_table_entry32 *entry; if (I->getImportLookupEntry(entry)) return; - for (; entry->data; ++entry) { + for (; entry->Data; ++entry) { if (entry->isOrdinal()) { outs() << format(" % 6d\n", entry->getOrdinal()); continue; -- 2.34.1