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 | 999b499024c7a069ce46936bd0f6e9fd2b0609c7 (patch) | |
| tree | 10f6aafe8f70a6ee1a4154307fa0b5a01cc7f6f1 /llvm/lib/CodeGen | |
| parent | cbdffb15856e4f1353145ac9358ab7e0678c21d0 (diff) | |
| download | bcm5719-llvm-999b499024c7a069ce46936bd0f6e9fd2b0609c7.tar.gz bcm5719-llvm-999b499024c7a069ce46936bd0f6e9fd2b0609c7.zip | |
Provide interface to identifiy artificial methods.
llvm-svn: 95240
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 1c2f7fc419d..90da2d7bc0a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/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; |

