mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Add isClosure() predicate. This is used to add DW_AT_APPLE_block attribute.
Patch by Caroline Tice. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80061 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -695,10 +695,7 @@ void DwarfDebug::ConstructTypeDIE(CompileUnit *DW_Unit, DIE &Buffer,
|
||||
Buffer.AddChild(ElemDie);
|
||||
}
|
||||
|
||||
// FIXME: We'd like an API to register additional attributes for the
|
||||
// frontend to use while synthesizing, and then we'd use that api in clang
|
||||
// instead of this.
|
||||
if (Name == "__block_literal_generic")
|
||||
if (CTy.isClosure())
|
||||
AddUInt(&Buffer, dwarf::DW_AT_APPLE_block, dwarf::DW_FORM_flag, 1);
|
||||
|
||||
unsigned RLang = CTy.getRunTimeLang();
|
||||
|
||||
Reference in New Issue
Block a user