diff options
author | Eric Christopher <echristo@gmail.com> | 2015-03-21 03:13:01 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-03-21 03:13:01 +0000 |
commit | cd53d6eda794edbda5550253faba66f67bc6d2fb (patch) | |
tree | f5f710b89af0d12764aafa0a8d792c99ab85d684 /llvm/lib/CodeGen | |
parent | 23a7d1e6f4d35f5f184e41dc949d4f5cd5f356e9 (diff) | |
download | bcm5719-llvm-cd53d6eda794edbda5550253faba66f67bc6d2fb.tar.gz bcm5719-llvm-cd53d6eda794edbda5550253faba66f67bc6d2fb.zip |
Change getISAEncoding to use the target triple to determine
thumb-ness similar to the rest of the Module level asm printing
infrastructure as debug info finalization happens after the function
may be missing.
llvm-svn: 232875
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index f1cd94b6e0a..f6af73fe20e 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -1361,9 +1361,8 @@ void DwarfUnit::applySubprogramAttributes(DISubprogram SP, DIE &SPDie, if (SP.isOptimized()) addFlag(SPDie, dwarf::DW_AT_APPLE_optimized); - if (unsigned isa = Asm->getISAEncoding(SP.getFunction())) { + if (unsigned isa = Asm->getISAEncoding()) addUInt(SPDie, dwarf::DW_AT_APPLE_isa, dwarf::DW_FORM_flag, isa); - } if (SP.isLValueReference()) addFlag(SPDie, dwarf::DW_AT_reference); |