mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232875 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user