LLVM API Documentation

Defines | Functions | Variables
DwarfUnit.cpp File Reference
#include "DwarfUnit.h"
#include "DwarfAccelTable.h"
#include "DwarfDebug.h"
#include "llvm/ADT/APFloat.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DIBuilder.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Mangler.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCSection.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Target/TargetFrameLowering.h"
#include "llvm/Target/TargetLoweringObjectFile.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetRegisterInfo.h"
#include "llvm/Target/TargetSubtargetInfo.h"
Include dependency graph for DwarfUnit.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "dwarfdebug"

Functions

static bool isShareableAcrossCUs (DIDescriptor D)
 Check whether the DIE for this MDNode can be shared across CUs.
static bool isUnsignedDIType (DwarfDebug *DD, DIType Ty)
 Return true if type encoding is unsigned.
static uint64_t getBaseTypeSize (DwarfDebug *DD, DIDerivedType Ty)
 If this type is derived from a base type then return base type size.
static const ConstantExprgetMergedGlobalExpr (const Value *V)

Variables

static cl::opt< boolGenerateDwarfTypeUnits ("generate-type-units", cl::Hidden, cl::desc("Generate DWARF4 type units."), cl::init(false))

Define Documentation

#define DEBUG_TYPE   "dwarfdebug"

Definition at line 37 of file DwarfUnit.cpp.


Function Documentation

static uint64_t getBaseTypeSize ( DwarfDebug DD,
DIDerivedType  Ty 
) [static]
static const ConstantExpr* getMergedGlobalExpr ( const Value V) [static]
static bool isShareableAcrossCUs ( DIDescriptor  D) [static]

Check whether the DIE for this MDNode can be shared across CUs.

Definition at line 131 of file DwarfUnit.cpp.

References GenerateDwarfTypeUnits, llvm::DISubprogram::isDefinition(), llvm::DIDescriptor::isSubprogram(), and llvm::DIDescriptor::isType().

Referenced by llvm::DwarfUnit::getDIE(), and llvm::DwarfUnit::insertDIE().

static bool isUnsignedDIType ( DwarfDebug DD,
DIType  Ty 
) [static]

Variable Documentation

cl::opt<bool> GenerateDwarfTypeUnits("generate-type-units", cl::Hidden, cl::desc("Generate DWARF4 type units."), cl::init(false)) [static]