[llvm-commits] [llvm] r71784 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
Mike Stump
mrs at apple.com
Thu May 14 11:46:22 PDT 2009
Author: mrs
Date: Thu May 14 13:45:49 2009
New Revision: 71784
URL: http://llvm.org/viewvc/llvm-project?rev=71784&view=rev
Log:
Tag blocks with DW_AT_APPLE_block.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp?rev=71784&r1=71783&r2=71784&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp Thu May 14 13:45:49 2009
@@ -1811,6 +1811,13 @@
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);
More information about the llvm-commits
mailing list