mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
Tag blocks with DW_AT_APPLE_block.
llvm-svn: 71784
This commit is contained in:
parent
8bd6fc810a
commit
5596137537
@ -1811,6 +1811,13 @@ private:
|
||||
DIDerivedType(Element.getGV()));
|
||||
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")
|
||||
AddUInt(&Buffer, DW_AT_APPLE_block, DW_FORM_flag, 1);
|
||||
|
||||
unsigned RLang = CTy.getRunTimeLang();
|
||||
if (RLang)
|
||||
AddUInt(&Buffer, DW_AT_APPLE_runtime_class, DW_FORM_data1, RLang);
|
||||
|
Loading…
Reference in New Issue
Block a user