clang
19.0.0git
|
This class gathers all debug information during compilation and is responsible for emitting to llvm globals or pass directly to the backend. More...
#include "/home/runner/work/llvm/llvm/repo/clang/lib/CodeGen/CGDebugInfo.h"
Public Member Functions | |
CGDebugInfo (CodeGenModule &CGM) | |
~CGDebugInfo () | |
void | finalize () |
std::string | remapDIPath (StringRef) const |
Remap a given path with the current debug prefix map. More... | |
void | registerVLASizeExpression (QualType Ty, llvm::Metadata *SizeExpr) |
Register VLA size expression debug node with the qualified type. More... | |
void | setLocation (SourceLocation Loc) |
Update the current source location. More... | |
SourceLocation | getLocation () const |
Return the current source location. More... | |
void | setInlinedAt (llvm::MDNode *InlinedAt) |
Update the current inline scope. More... | |
llvm::MDNode * | getInlinedAt () const |
llvm::DebugLoc | SourceLocToDebugLoc (SourceLocation Loc) |
void | EmitLocation (CGBuilderTy &Builder, SourceLocation Loc) |
Emit metadata to indicate a change in line/column information in the source file. More... | |
QualType | getFunctionType (const FunctionDecl *FD, QualType RetTy, const SmallVectorImpl< const VarDecl * > &Args) |
void | emitFunctionStart (GlobalDecl GD, SourceLocation Loc, SourceLocation ScopeLoc, QualType FnType, llvm::Function *Fn, bool CurFnIsThunk) |
Emit a call to llvm.dbg.function.start to indicate start of a new function. More... | |
void | EmitInlineFunctionStart (CGBuilderTy &Builder, GlobalDecl GD) |
Start a new scope for an inlined function. More... | |
void | EmitInlineFunctionEnd (CGBuilderTy &Builder) |
End an inlined function scope. More... | |
void | EmitFunctionDecl (GlobalDecl GD, SourceLocation Loc, QualType FnType, llvm::Function *Fn=nullptr) |
Emit debug info for a function declaration. More... | |
void | EmitFuncDeclForCallSite (llvm::CallBase *CallOrInvoke, QualType CalleeType, const FunctionDecl *CalleeDecl) |
Emit debug info for an extern function being called. More... | |
void | EmitFunctionEnd (CGBuilderTy &Builder, llvm::Function *Fn) |
Constructs the debug code for exiting a function. More... | |
void | EmitLexicalBlockStart (CGBuilderTy &Builder, SourceLocation Loc) |
Emit metadata to indicate the beginning of a new lexical block and push the block onto the stack. More... | |
void | EmitLexicalBlockEnd (CGBuilderTy &Builder, SourceLocation Loc) |
Emit metadata to indicate the end of a new lexical block and pop the current block. More... | |
llvm::DILocalVariable * | EmitDeclareOfAutoVariable (const VarDecl *Decl, llvm::Value *AI, CGBuilderTy &Builder, const bool UsePointerValue=false) |
Emit call to llvm.dbg.declare for an automatic variable declaration. More... | |
void | EmitLabel (const LabelDecl *D, CGBuilderTy &Builder) |
Emit call to llvm.dbg.label for an label. More... | |
void | EmitDeclareOfBlockDeclRefVariable (const VarDecl *variable, llvm::Value *storage, CGBuilderTy &Builder, const CGBlockInfo &blockInfo, llvm::Instruction *InsertPoint=nullptr) |
Emit call to llvm.dbg.declare for an imported variable declaration in a block. More... | |
llvm::DILocalVariable * | EmitDeclareOfArgVariable (const VarDecl *Decl, llvm::Value *AI, unsigned ArgNo, CGBuilderTy &Builder, bool UsePointerValue=false) |
Emit call to llvm.dbg.declare for an argument variable declaration. More... | |
void | EmitDeclareOfBlockLiteralArgVariable (const CGBlockInfo &block, StringRef Name, unsigned ArgNo, llvm::AllocaInst *LocalAddr, CGBuilderTy &Builder) |
Emit call to llvm.dbg.declare for the block-literal argument to a block invocation function. More... | |
void | EmitGlobalVariable (llvm::GlobalVariable *GV, const VarDecl *Decl) |
Emit information about a global variable. More... | |
void | EmitGlobalVariable (const ValueDecl *VD, const APValue &Init) |
Emit a constant global variable's debug info. More... | |
void | EmitExternalVariable (llvm::GlobalVariable *GV, const VarDecl *Decl) |
Emit information about an external variable. More... | |
void | EmitGlobalAlias (const llvm::GlobalValue *GV, const GlobalDecl Decl) |
Emit information about global variable alias. More... | |
void | EmitUsingDirective (const UsingDirectiveDecl &UD) |
Emit C++ using directive. More... | |
void | EmitExplicitCastType (QualType Ty) |
Emit the type explicitly casted to. More... | |
void | EmitAndRetainType (QualType Ty) |
Emit the type even if it might not be used. More... | |
void | EmitUsingShadowDecl (const UsingShadowDecl &USD) |
Emit a shadow decl brought in by a using or using-enum. More... | |
void | EmitUsingDecl (const UsingDecl &UD) |
Emit C++ using declaration. More... | |
void | EmitUsingEnumDecl (const UsingEnumDecl &UD) |
Emit C++ using-enum declaration. More... | |
void | EmitImportDecl (const ImportDecl &ID) |
Emit an @import declaration. More... | |
void | AddStringLiteralDebugInfo (llvm::GlobalVariable *GV, const StringLiteral *S) |
DebugInfo isn't attached to string literals by default. More... | |
llvm::DIImportedEntity * | EmitNamespaceAlias (const NamespaceAliasDecl &NA) |
Emit C++ namespace alias. More... | |
llvm::DIType * | getOrCreateRecordType (QualType Ty, SourceLocation L) |
Emit record type's standalone debug info. More... | |
llvm::DIType * | getOrCreateInterfaceType (QualType Ty, SourceLocation Loc) |
Emit an Objective-C interface type standalone debug info. More... | |
llvm::DIType * | getOrCreateStandaloneType (QualType Ty, SourceLocation Loc) |
Emit standalone debug info for a type. More... | |
void | addHeapAllocSiteMetadata (llvm::CallBase *CallSite, QualType AllocatedTy, SourceLocation Loc) |
Add heapallocsite metadata for MSAllocator calls. More... | |
void | completeType (const EnumDecl *ED) |
void | completeType (const RecordDecl *RD) |
void | completeRequiredType (const RecordDecl *RD) |
void | completeClassData (const RecordDecl *RD) |
void | completeClass (const RecordDecl *RD) |
void | completeTemplateDefinition (const ClassTemplateSpecializationDecl &SD) |
void | completeUnusedClass (const CXXRecordDecl &D) |
llvm::DIMacro * | CreateMacro (llvm::DIMacroFile *Parent, unsigned MType, SourceLocation LineLoc, StringRef Name, StringRef Value) |
Create debug info for a macro defined by a #define directive or a macro undefined by a #undef directive. More... | |
llvm::DIMacroFile * | CreateTempMacroFile (llvm::DIMacroFile *Parent, SourceLocation LineLoc, SourceLocation FileLoc) |
Create debug info for a file referenced by an #include directive. More... | |
Param2DILocTy & | getParamDbgMappings () |
ParamDecl2StmtTy & | getCoroutineParameterMappings () |
void | setDwoId (uint64_t Signature) |
Module debugging: Support for building PCMs. More... | |
void | setModuleMap (ModuleMap &MMap) |
When generating debug information for a clang module or precompiled header, this module map will be used to determine the module of origin of each Decl. More... | |
void | setPCHDescriptor (ASTSourceDescriptor PCH) |
When generating debug information for a clang module or precompiled header, this module map will be used to determine the module of origin of each Decl. More... | |
Friends | |
class | ApplyDebugLocation |
class | SaveAndRestoreLocation |
This class gathers all debug information during compilation and is responsible for emitting to llvm globals or pass directly to the backend.
Definition at line 55 of file CGDebugInfo.h.
CGDebugInfo::CGDebugInfo | ( | CodeGenModule & | CGM | ) |
Definition at line 72 of file CGDebugInfo.cpp.
CGDebugInfo::~CGDebugInfo | ( | ) |
Definition at line 79 of file CGDebugInfo.cpp.
void CGDebugInfo::addHeapAllocSiteMetadata | ( | llvm::CallBase * | CallSite, |
QualType | AllocatedTy, | ||
SourceLocation | Loc | ||
) |
Add heapallocsite metadata for MSAllocator calls.
Definition at line 2613 of file CGDebugInfo.cpp.
References clang::CodeGen::CodeGenModule::getCodeGenOpts(), clang::CodeGen::CodeGenModule::getLLVMContext(), clang::Type::isVoidType(), Loc, and clang::transformer::node().
Referenced by clang::CodeGen::CodeGenFunction::EmitCall(), and clang::CodeGen::CodeGenFunction::EmitCXXNewExpr().
void CGDebugInfo::AddStringLiteralDebugInfo | ( | llvm::GlobalVariable * | GV, |
const StringLiteral * | S | ||
) |
DebugInfo isn't attached to string literals by default.
While certain aspects of debuginfo aren't useful for string literals (like a name), it's nice to be able to symbolize the line and column information. This is especially useful for sanitizers, as it allows symbolization of heap-buffer-overflows on constant strings.
Definition at line 5837 of file CGDebugInfo.cpp.
void CGDebugInfo::completeClass | ( | const RecordDecl * | RD | ) |
Definition at line 2703 of file CGDebugInfo.cpp.
References clang::Type::castAs(), clang::QualType::getAsOpaquePtr(), clang::CodeGen::CodeGenModule::getContext(), and clang::ASTContext::getRecordType().
Referenced by completeClassData().
void CGDebugInfo::completeClassData | ( | const RecordDecl * | RD | ) |
Definition at line 2689 of file CGDebugInfo.cpp.
References completeClass(), clang::RecordDecl::getDefinition(), clang::CodeGen::CodeGenModule::getVTableLinkage(), isClassOrMethodDLLImport(), and isDefinedInClangModule().
Referenced by completeRequiredType(), and completeUnusedClass().
void CGDebugInfo::completeRequiredType | ( | const RecordDecl * | RD | ) |
Definition at line 2815 of file CGDebugInfo.cpp.
References completeClassData(), clang::CodeGen::CodeGenModule::getContext(), clang::CodeGen::CodeGenModule::getLangOpts(), clang::ASTContext::getRecordType(), shouldOmitDefinition(), and clang::T.
Referenced by completeType().
void CGDebugInfo::completeTemplateDefinition | ( | const ClassTemplateSpecializationDecl & | SD | ) |
Definition at line 3657 of file CGDebugInfo.cpp.
References completeUnusedClass().
void CGDebugInfo::completeType | ( | const EnumDecl * | ED | ) |
Definition at line 2628 of file CGDebugInfo.cpp.
References clang::Type::castAs(), clang::QualType::getAsOpaquePtr(), clang::CodeGen::CodeGenModule::getContext(), and clang::ASTContext::getEnumType().
void CGDebugInfo::completeType | ( | const RecordDecl * | RD | ) |
Definition at line 2641 of file CGDebugInfo.cpp.
References completeRequiredType(), and clang::CodeGen::CodeGenModule::getLangOpts().
void CGDebugInfo::completeUnusedClass | ( | const CXXRecordDecl & | D | ) |
Definition at line 3662 of file CGDebugInfo.cpp.
References completeClassData(), clang::QualType::getAsOpaquePtr(), clang::CodeGen::CodeGenModule::getContext(), clang::ASTContext::getRecordType(), and clang::CXXRecordDecl::isDynamicClass().
Referenced by completeTemplateDefinition().
llvm::DIMacro * CGDebugInfo::CreateMacro | ( | llvm::DIMacroFile * | Parent, |
unsigned | MType, | ||
SourceLocation | LineLoc, | ||
StringRef | Name, | ||
StringRef | Value | ||
) |
Create debug info for a macro defined by a #define directive or a macro undefined by a #undef directive.
Definition at line 3552 of file CGDebugInfo.cpp.
Referenced by clang::MacroPPCallbacks::MacroUndefined().
llvm::DIMacroFile * CGDebugInfo::CreateTempMacroFile | ( | llvm::DIMacroFile * | Parent, |
SourceLocation | LineLoc, | ||
SourceLocation | FileLoc | ||
) |
Create debug info for a file referenced by an #include directive.
Definition at line 3559 of file CGDebugInfo.cpp.
References clang::SourceLocation::isInvalid(), and Parent.
void CGDebugInfo::EmitAndRetainType | ( | QualType | Ty | ) |
Emit the type even if it might not be used.
Definition at line 6071 of file CGDebugInfo.cpp.
llvm::DILocalVariable * CGDebugInfo::EmitDeclareOfArgVariable | ( | const VarDecl * | Decl, |
llvm::Value * | AI, | ||
unsigned | ArgNo, | ||
CGBuilderTy & | Builder, | ||
bool | UsePointerValue = false |
||
) |
Emit call to llvm.dbg.declare
for an argument variable declaration.
Definition at line 5175 of file CGDebugInfo.cpp.
llvm::DILocalVariable * CGDebugInfo::EmitDeclareOfAutoVariable | ( | const VarDecl * | Decl, |
llvm::Value * | AI, | ||
CGBuilderTy & | Builder, | ||
const bool | UsePointerValue = false |
||
) |
Emit call to llvm.dbg.declare
for an automatic variable declaration.
Returns a pointer to the DILocalVariable associated with the llvm.dbg.declare, or nullptr otherwise.
Definition at line 5049 of file CGDebugInfo.cpp.
void CGDebugInfo::EmitDeclareOfBlockDeclRefVariable | ( | const VarDecl * | variable, |
llvm::Value * | storage, | ||
CGBuilderTy & | Builder, | ||
const CGBlockInfo & | blockInfo, | ||
llvm::Instruction * | InsertPoint = nullptr |
||
) |
Emit call to llvm.dbg.declare
for an imported variable declaration in a block.
Definition at line 5102 of file CGDebugInfo.cpp.
void CGDebugInfo::EmitDeclareOfBlockLiteralArgVariable | ( | const CGBlockInfo & | block, |
StringRef | Name, | ||
unsigned | ArgNo, | ||
llvm::AllocaInst * | LocalAddr, | ||
CGBuilderTy & | Builder | ||
) |
Emit call to llvm.dbg.declare
for the block-literal argument to a block invocation function.
Definition at line 5230 of file CGDebugInfo.cpp.
void CGDebugInfo::EmitExplicitCastType | ( | QualType | Ty | ) |
Emit the type explicitly casted to.
Definition at line 6065 of file CGDebugInfo.cpp.
void CGDebugInfo::EmitExternalVariable | ( | llvm::GlobalVariable * | GV, |
const VarDecl * | Decl | ||
) |
Emit information about an external variable.
Definition at line 5777 of file CGDebugInfo.cpp.
References getDeclAlignIfRequired(), clang::Decl::getLocation(), clang::Decl::hasAttr(), and clang::CodeGen::noSystemDebugInfo().
void CGDebugInfo::EmitFuncDeclForCallSite | ( | llvm::CallBase * | CallOrInvoke, |
QualType | CalleeType, | ||
const FunctionDecl * | CalleeDecl | ||
) |
Emit debug info for an extern function being called.
This is needed for call site debug info.
Definition at line 4545 of file CGDebugInfo.cpp.
References EmitFunctionDecl(), clang::Func, clang::Decl::getLocation(), clang::Decl::hasAttr(), clang::FunctionDecl::isInlined(), clang::FunctionDecl::isStatic(), and clang::CodeGen::noSystemDebugInfo().
void CGDebugInfo::EmitFunctionDecl | ( | GlobalDecl | GD, |
SourceLocation | Loc, | ||
QualType | FnType, | ||
llvm::Function * | Fn = nullptr |
||
) |
Emit debug info for a function declaration.
Fn
is set only when a declaration for a debug call site gets created.
Definition at line 4472 of file CGDebugInfo.cpp.
Referenced by EmitFuncDeclForCallSite().
void CGDebugInfo::EmitFunctionEnd | ( | CGBuilderTy & | Builder, |
llvm::Function * | Fn | ||
) |
Constructs the debug code for exiting a function.
Definition at line 4656 of file CGDebugInfo.cpp.
void CGDebugInfo::emitFunctionStart | ( | GlobalDecl | GD, |
SourceLocation | Loc, | ||
SourceLocation | ScopeLoc, | ||
QualType | FnType, | ||
llvm::Function * | Fn, | ||
bool | CurFnIsThunk | ||
) |
Emit a call to llvm.dbg.function.start to indicate start of a new function.
Loc | The location of the function header. |
ScopeLoc | The location of the function body. |
Definition at line 4363 of file CGDebugInfo.cpp.
void CGDebugInfo::EmitGlobalAlias | ( | const llvm::GlobalValue * | GV, |
const GlobalDecl | Decl | ||
) |
Emit information about global variable alias.
Definition at line 5796 of file CGDebugInfo.cpp.
References clang::GlobalDecl::getCanonicalDecl(), clang::GlobalDecl::getDecl(), clang::Decl::getLocation(), clang::Decl::hasAttr(), Loc, and clang::CodeGen::noSystemDebugInfo().
Emit a constant global variable's debug info.
Definition at line 5701 of file CGDebugInfo.cpp.
References getDeclAlignIfRequired(), clang::Decl::getLocation(), clang::Decl::hasAttr(), and clang::CodeGen::noSystemDebugInfo().
void CGDebugInfo::EmitGlobalVariable | ( | llvm::GlobalVariable * | GV, |
const VarDecl * | Decl | ||
) |
Emit information about a global variable.
Definition at line 5635 of file CGDebugInfo.cpp.
References clang::Type::castAs(), clang::cuda_constant, clang::cuda_shared, clang::VarDecl::getCanonicalDecl(), getDeclAlignIfRequired(), clang::ValueDecl::getType(), clang::Decl::hasAttr(), clang::RecordDecl::isAnonymousStructOrUnion(), clang::Type::isUnionType(), clang::CodeGen::noSystemDebugInfo(), and clang::T.
Referenced by clang::CodeGen::CodeGenFunction::EmitStaticVarDecl().
void CGDebugInfo::EmitImportDecl | ( | const ImportDecl & | ID | ) |
Emit an @import declaration.
Definition at line 5926 of file CGDebugInfo.cpp.
void CGDebugInfo::EmitInlineFunctionEnd | ( | CGBuilderTy & | Builder | ) |
End an inlined function scope.
Definition at line 4585 of file CGDebugInfo.cpp.
Referenced by clang::CodeGen::ApplyInlineDebugLocation::~ApplyInlineDebugLocation().
void CGDebugInfo::EmitInlineFunctionStart | ( | CGBuilderTy & | Builder, |
GlobalDecl | GD | ||
) |
Start a new scope for an inlined function.
Definition at line 4570 of file CGDebugInfo.cpp.
void CGDebugInfo::EmitLabel | ( | const LabelDecl * | D, |
CGBuilderTy & | Builder | ||
) |
Emit call to llvm.dbg.label
for an label.
Definition at line 5067 of file CGDebugInfo.cpp.
void CGDebugInfo::EmitLexicalBlockEnd | ( | CGBuilderTy & | Builder, |
SourceLocation | Loc | ||
) |
Emit metadata to indicate the end of a new lexical block and pop the current block.
Definition at line 4643 of file CGDebugInfo.cpp.
void CGDebugInfo::EmitLexicalBlockStart | ( | CGBuilderTy & | Builder, |
SourceLocation | Loc | ||
) |
Emit metadata to indicate the beginning of a new lexical block and push the block onto the stack.
Definition at line 4626 of file CGDebugInfo.cpp.
void CGDebugInfo::EmitLocation | ( | CGBuilderTy & | Builder, |
SourceLocation | Loc | ||
) |
Emit metadata to indicate a change in line/column information in the source file.
If the location is invalid, the previous location will be reused.
Definition at line 4591 of file CGDebugInfo.cpp.
llvm::DIImportedEntity * CGDebugInfo::EmitNamespaceAlias | ( | const NamespaceAliasDecl & | NA | ) |
Emit C++ namespace alias.
Definition at line 5940 of file CGDebugInfo.cpp.
References clang::NamespaceAliasDecl::getAliasedNamespace(), clang::Decl::getDeclContext(), clang::Decl::getLocation(), clang::NamedDecl::getName(), Loc, and clang::CodeGen::noSystemDebugInfo().
void CGDebugInfo::EmitUsingDecl | ( | const UsingDecl & | UD | ) |
Emit C++ using declaration.
Definition at line 5886 of file CGDebugInfo.cpp.
References clang::Type::getContainedAutoType(), clang::CodeGen::noSystemDebugInfo(), clang::BaseUsingDecl::shadow_size(), and clang::BaseUsingDecl::shadows().
void CGDebugInfo::EmitUsingDirective | ( | const UsingDirectiveDecl & | UD | ) |
Emit C++ using directive.
Definition at line 5859 of file CGDebugInfo.cpp.
References clang::Decl::getDeclContext(), clang::Decl::getLocation(), clang::UsingDirectiveDecl::getNominatedNamespace(), clang::NamespaceDecl::isAnonymousNamespace(), clang::SourceLocation::isValid(), Loc, and clang::CodeGen::noSystemDebugInfo().
void CGDebugInfo::EmitUsingEnumDecl | ( | const UsingEnumDecl & | UD | ) |
Emit C++ using-enum declaration.
Definition at line 5913 of file CGDebugInfo.cpp.
References clang::CodeGen::noSystemDebugInfo(), clang::BaseUsingDecl::shadow_size(), and clang::BaseUsingDecl::shadows().
void CGDebugInfo::EmitUsingShadowDecl | ( | const UsingShadowDecl & | USD | ) |
Emit a shadow decl brought in by a using or using-enum.
Definition at line 5876 of file CGDebugInfo.cpp.
References clang::Decl::getDeclContext(), clang::Decl::getLocation(), clang::NamedDecl::getUnderlyingDecl(), and Loc.
void CGDebugInfo::finalize | ( | ) |
Definition at line 5988 of file CGDebugInfo.cpp.
References clang::QualType::getAsOpaquePtr(), and P.
|
inline |
Definition at line 606 of file CGDebugInfo.h.
QualType CGDebugInfo::getFunctionType | ( | const FunctionDecl * | FD, |
QualType | RetTy, | ||
const SmallVectorImpl< const VarDecl * > & | Args | ||
) |
Definition at line 4350 of file CGDebugInfo.cpp.
References clang::CC_C, clang::Type::getAs(), clang::CodeGen::CodeGenModule::getContext(), clang::ASTContext::getFunctionType(), and clang::ValueDecl::getType().
|
inline |
Definition at line 449 of file CGDebugInfo.h.
|
inline |
Return the current source location.
This does not necessarily correspond to the IRBuilder's current DebugLoc.
Definition at line 442 of file CGDebugInfo.h.
llvm::DIType * CGDebugInfo::getOrCreateInterfaceType | ( | QualType | Ty, |
SourceLocation | Loc | ||
) |
Emit an Objective-C interface type standalone debug info.
Definition at line 2597 of file CGDebugInfo.cpp.
References getOrCreateStandaloneType(), and Loc.
llvm::DIType * CGDebugInfo::getOrCreateRecordType | ( | QualType | Ty, |
SourceLocation | L | ||
) |
Emit record type's standalone debug info.
Definition at line 2590 of file CGDebugInfo.cpp.
References clang::CodeGen::CodeGenModule::getCodeGenOpts(), clang::CodeGenOptions::hasReducedDebugInfo(), Loc, and clang::T.
Referenced by clang::CodeGen::CodeGenFunction::EmitLValueForField().
llvm::DIType * CGDebugInfo::getOrCreateStandaloneType | ( | QualType | Ty, |
SourceLocation | Loc | ||
) |
Emit standalone debug info for a type.
Definition at line 2602 of file CGDebugInfo.cpp.
References clang::QualType::getAsOpaquePtr(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), clang::CodeGenOptions::hasReducedDebugInfo(), clang::QualType::isNull(), Loc, and clang::T.
Referenced by emitArraySubscriptGEP(), clang::CodeGen::CodeGenFunction::EmitLValueForField(), emitPreserveStructAccess(), and getOrCreateInterfaceType().
|
inline |
Definition at line 605 of file CGDebugInfo.h.
|
inline |
Register VLA size expression debug node with the qualified type.
Definition at line 416 of file CGDebugInfo.h.
std::string CGDebugInfo::remapDIPath | ( | StringRef | Path | ) | const |
Remap a given path with the current debug prefix map.
Definition at line 500 of file CGDebugInfo.cpp.
References clang::CodeGenOptions::DebugPrefixMap, clang::CodeGen::CodeGenModule::getCodeGenOpts(), and P.
void CGDebugInfo::setDwoId | ( | uint64_t | Signature | ) |
Module debugging: Support for building PCMs.
Set the main CU's DwoId field to Signature
.
Definition at line 5983 of file CGDebugInfo.cpp.
|
inline |
Update the current inline scope.
All subsequent calls to EmitLocation
will create a location with this inlinedAt field.
Definition at line 446 of file CGDebugInfo.h.
void CGDebugInfo::setLocation | ( | SourceLocation | Loc | ) |
Update the current source location.
If
Definition at line 174 of file CGDebugInfo.cpp.
References clang::CodeGen::CodeGenModule::getContext(), clang::SourceManager::getExpansionLoc(), clang::ASTContext::getSourceManager(), clang::SourceLocation::isInvalid(), clang::PresumedLoc::isInvalid(), Loc, and SM.
Referenced by clang::CodeGen::CodeGenFunction::EmitStaticVarDecl().
|
inline |
When generating debug information for a clang module or precompiled header, this module map will be used to determine the module of origin of each Decl.
Definition at line 428 of file CGDebugInfo.h.
|
inline |
When generating debug information for a clang module or precompiled header, this module map will be used to determine the module of origin of each Decl.
Definition at line 433 of file CGDebugInfo.h.
References clang::PCH.
llvm::DebugLoc CGDebugInfo::SourceLocToDebugLoc | ( | SourceLocation | Loc | ) |
Definition at line 6077 of file CGDebugInfo.cpp.
References Loc.
|
friend |
Definition at line 56 of file CGDebugInfo.h.
|
friend |
Definition at line 57 of file CGDebugInfo.h.