LLVM  6.0.0svn
Public Member Functions | Public Attributes | List of all members
llvm::COFF::ImportLookupTableEntry32 Struct Reference

The PE32 Import Lookup Table. More...

#include "llvm/BinaryFormat/COFF.h"

Collaboration diagram for llvm::COFF::ImportLookupTableEntry32:
Collaboration graph
[legend]

Public Member Functions

bool isOrdinal () const
 Is this entry specified by ordinal, or name? More...
 
uint16_t getOrdinal () const
 Get the ordinal value of this entry. isOrdinal must be true. More...
 
void setOrdinal (uint16_t o)
 Set the ordinal value and set isOrdinal to true. More...
 
uint32_t getHintNameRVA () const
 Get the Hint/Name entry RVA. isOrdinal must be false. More...
 
void setHintNameRVA (uint32_t rva)
 Set the Hint/Name entry RVA and set isOrdinal to false. More...
 

Public Attributes

uint32_t data
 

Detailed Description

The PE32 Import Lookup Table.

There is an array of these for each imported DLL. It represents either the ordinal to import from the target DLL, or a name to lookup and import from the target DLL.

This also happens to be the same format used by the Import Address Table when it is initially written out to the image.

Definition at line 482 of file COFF.h.

Member Function Documentation

◆ getHintNameRVA()

uint32_t llvm::COFF::ImportLookupTableEntry32::getHintNameRVA ( ) const
inline

Get the Hint/Name entry RVA. isOrdinal must be false.

Definition at line 501 of file COFF.h.

References assert().

◆ getOrdinal()

uint16_t llvm::COFF::ImportLookupTableEntry32::getOrdinal ( ) const
inline

Get the ordinal value of this entry. isOrdinal must be true.

Definition at line 489 of file COFF.h.

References assert().

◆ isOrdinal()

bool llvm::COFF::ImportLookupTableEntry32::isOrdinal ( ) const
inline

Is this entry specified by ordinal, or name?

Definition at line 486 of file COFF.h.

◆ setHintNameRVA()

void llvm::COFF::ImportLookupTableEntry32::setHintNameRVA ( uint32_t  rva)
inline

Set the Hint/Name entry RVA and set isOrdinal to false.

Definition at line 507 of file COFF.h.

◆ setOrdinal()

void llvm::COFF::ImportLookupTableEntry32::setOrdinal ( uint16_t  o)
inline

Set the ordinal value and set isOrdinal to true.

Definition at line 495 of file COFF.h.

Member Data Documentation

◆ data

uint32_t llvm::COFF::ImportLookupTableEntry32::data

Definition at line 483 of file COFF.h.


The documentation for this struct was generated from the following file: