LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
DIEHash.cpp File Reference
#include "DIEHash.h"
#include "DIE.h"
#include "DwarfCompileUnit.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringRef.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.

Macros

#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. More...
 

Macro Definition Documentation

#define ADD_ATTR (   ATTR)
Value:
{ \
if (ATTR.Val != 0) \
hashAttribute(ATTR, Tag); \
}
* if(!EatIfPresent(lltok::kw_thread_local)) return false
#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 14 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 32 of file DIEHash.cpp.

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

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