aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-07-21 23:03:52 +0000
committerJim Grosbach <grosbach@apple.com>2010-07-21 23:03:52 +0000
commit917290043f87b8efa6ba540bec5963013c517912 (patch)
tree233f587ebc5132d81e673a7ff8ec77788b6f7321 /lib/CodeGen
parent908bafe6fa28c077195aa3a2eeace7f3de41ae4c (diff)
downloadexternal_llvm-917290043f87b8efa6ba540bec5963013c517912.zip
external_llvm-917290043f87b8efa6ba540bec5963013c517912.tar.gz
external_llvm-917290043f87b8efa6ba540bec5963013c517912.tar.bz2
For ARM/Darwin, add a dwarf entry indicating whether a function is arm or thumb
rdar://8202967 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109057 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 513e6ad..5618f09 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1336,6 +1336,10 @@ DIE *DwarfDebug::createSubprogramDIE(const DISubprogram &SP, bool MakeDecl) {
if (SP.isOptimized())
addUInt(SPDie, dwarf::DW_AT_APPLE_optimized, dwarf::DW_FORM_flag, 1);
+ if (unsigned isa = Asm->getISAEncoding()) {
+ addUInt(SPDie, dwarf::DW_AT_APPLE_isa, dwarf::DW_FORM_flag, isa);
+ }
+
// DW_TAG_inlined_subroutine may refer to this DIE.
SPCU->insertDIE(SP, SPDie);