Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/CodeGen/CGDebugInfo.cpp
Show First 20 Lines • Show All 1,270 Lines • ▼ Show 20 Lines | if (Ty->getDecl()->hasAttr<NoDebugAttr>()) | ||||
return Underlying; | return Underlying; | ||||
// We don't set size information, but do specify where the typedef was | // We don't set size information, but do specify where the typedef was | ||||
// declared. | // declared. | ||||
SourceLocation Loc = Ty->getDecl()->getLocation(); | SourceLocation Loc = Ty->getDecl()->getLocation(); | ||||
uint32_t Align = getDeclAlignIfRequired(Ty->getDecl(), CGM.getContext()); | uint32_t Align = getDeclAlignIfRequired(Ty->getDecl(), CGM.getContext()); | ||||
// Typedefs are derived from some other type. | // Typedefs are derived from some other type. | ||||
llvm::DINodeArray Annotations = CollectBTFDeclTagAnnotations(Ty->getDecl()); | |||||
return DBuilder.createTypedef(Underlying, Ty->getDecl()->getName(), | return DBuilder.createTypedef(Underlying, Ty->getDecl()->getName(), | ||||
getOrCreateFile(Loc), getLineNumber(Loc), | getOrCreateFile(Loc), getLineNumber(Loc), | ||||
getDeclContextDescriptor(Ty->getDecl()), Align); | getDeclContextDescriptor(Ty->getDecl()), Align, | ||||
Annotations); | |||||
} | } | ||||
static unsigned getDwarfCC(CallingConv CC) { | static unsigned getDwarfCC(CallingConv CC) { | ||||
switch (CC) { | switch (CC) { | ||||
case CC_C: | case CC_C: | ||||
// Avoid emitting DW_AT_calling_convention if the C convention was used. | // Avoid emitting DW_AT_calling_convention if the C convention was used. | ||||
return 0; | return 0; | ||||
▲ Show 20 Lines • Show All 4,153 Lines • Show Last 20 Lines |