summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit965a73a28cbf7abf759b572c6c761a3a9c5b03a9 (patch)
treef18254d52c28539468ea01a163dd2252a6ee3b23 /llvm/lib/CodeGen
parent5c91a5e7473c14d6ea3ad16dfcf4a80e991a53f8 (diff)
downloadbcm5719-llvm-965a73a28cbf7abf759b572c6c761a3a9c5b03a9.tar.gz
bcm5719-llvm-965a73a28cbf7abf759b572c6c761a3a9c5b03a9.zip
For ARM/Darwin, add a dwarf entry indicating whether a function is arm or thumb
rdar://8202967 llvm-svn: 109057
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 513e6adfc88..5618f09efe2 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud