diff options
| author | Mike Stump <mrs@apple.com> | 2009-05-14 18:45:49 +0000 |
|---|---|---|
| committer | Mike Stump <mrs@apple.com> | 2009-05-14 18:45:49 +0000 |
| commit | ae6cc68b932414b5f2cbe054fe4b04f5fe71e271 (patch) | |
| tree | 90b0326328a1d48e2b4ff64c6bf6188cb41f4d98 /lib/CodeGen/AsmPrinter | |
| parent | 9b231218db0d7c5a048fca40b34ec487c3996dd5 (diff) | |
| download | external_llvm-ae6cc68b932414b5f2cbe054fe4b04f5fe71e271.zip external_llvm-ae6cc68b932414b5f2cbe054fe4b04f5fe71e271.tar.gz external_llvm-ae6cc68b932414b5f2cbe054fe4b04f5fe71e271.tar.bz2 | |
Tag blocks with DW_AT_APPLE_block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71784 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter')
| -rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index bc83b8f..c77a753 100644 --- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp @@ -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); |
