Rename data -> Data

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218916 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rui Ueyama 2014-10-02 22:13:44 +00:00
parent 3d49ad0cbc
commit 7bd81ba05b
2 changed files with 5 additions and 5 deletions

View File

@ -164,18 +164,18 @@ struct import_directory_table_entry {
template <typename IntTy>
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;
}
};

View File

@ -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;