LLVM API Documentation

Defines | Functions
DIEHash.cpp File Reference
#include "ByteStreamer.h"
#include "DIEHash.h"
#include "DIE.h"
#include "DwarfDebug.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Dwarf.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/MD5.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for DIEHash.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "dwarfdebug"
#define COLLECT_ATTR(NAME)
#define ADD_ATTR(ATTR)

Functions

static StringRef getDIEStringAttr (const DIE &Die, uint16_t Attr)
 Grabs the string in whichever attribute is passed in and returns a reference to it.

Define Documentation

#define ADD_ATTR (   ATTR)
Value:
{                                                                            \
    if (ATTR.Val != 0)                                                         \
      hashAttribute(ATTR, Tag);                                                \
  }
#define COLLECT_ATTR (   NAME)
Value:
case dwarf::NAME:                                                            \
    Attrs.NAME.Val = Values[i];                                                \
    Attrs.NAME.Desc = &Abbrevs.getData()[i];                                   \
    break
#define DEBUG_TYPE   "dwarfdebug"

Definition at line 29 of file DIEHash.cpp.


Function Documentation

static StringRef getDIEStringAttr ( const DIE Die,
uint16_t  Attr 
) [static]

Grabs the string in whichever attribute is passed in and returns a reference to it.

Definition at line 33 of file DIEHash.cpp.

References llvm::DIE::getAbbrev(), llvm::DIEAbbrev::getData(), llvm::DIEString::getString(), llvm::DIE::getValues(), and llvm::SmallVectorTemplateCommon< T, typename >::size().

Referenced by llvm::DIEHash::computeDIEODRSignature().