diff options
author | Devang Patel <dpatel@apple.com> | 2010-02-03 19:57:19 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-02-03 19:57:19 +0000 |
commit | 4e0d19dfd9ab77f9974cb07320dfe4f7f5ffd7b9 (patch) | |
tree | 45272c2987a2088e60c51f21d009b88a8ea33a97 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 3a813dc7079135fa417d22f7b234e902a20c93ce (diff) |
Provide interface to identifiy artificial methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95240 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 1c2f7fc419..90da2d7bc0 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1201,6 +1201,9 @@ DIE *DwarfDebug::createSubprogramDIE(const DISubprogram &SP, bool MakeDecl) { } } + if (SP.isArtificial()) + addUInt(SPDie, dwarf::DW_AT_artificial, dwarf::DW_FORM_flag, 1); + // DW_TAG_inlined_subroutine may refer to this DIE. ModuleCU->insertDIE(SP.getNode(), SPDie); return SPDie; |