diff options
author | Eric Christopher <echristo@gmail.com> | 2015-02-17 20:02:32 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-02-17 20:02:32 +0000 |
commit | a49d68e0784c46c42b8668e7b7def4caa7cf0778 (patch) | |
tree | 2b9c8cf3c04261534d4a25b6b48e99f9cc75ccfe /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | |
parent | ffc5ff32d1c008c629f4cc585e61b1b111f50b83 (diff) | |
download | bcm5719-llvm-a49d68e0784c46c42b8668e7b7def4caa7cf0778.tar.gz bcm5719-llvm-a49d68e0784c46c42b8668e7b7def4caa7cf0778.zip |
Make the ARM AsmPrinter independent of global subtarget
initialization. Initialize the subtarget once per function and
migrate Emit{Start|End}OfAsmFile to either use attributes on the
TargetMachine or get information from the subtarget we'd use
for assembling. One bit (getISAEncoding) touched the general
AsmPrinter and the debug output. Handle this one by passing
the function for the subprogram down and updating all callers
and users.
The top-level-ness of the ARM attribute output for assembly is,
by nature, contrary to how we'd want to do this for an LTO
situation where we have multiple cpu architectures so this
solution is good enough for now.
llvm-svn: 229528
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index 7caf31af378..b0c7d48140f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -1344,7 +1344,7 @@ void DwarfUnit::applySubprogramAttributes(DISubprogram SP, DIE &SPDie, if (SP.isOptimized()) addFlag(SPDie, dwarf::DW_AT_APPLE_optimized); - if (unsigned isa = Asm->getISAEncoding()) { + if (unsigned isa = Asm->getISAEncoding(SP.getFunction())) { addUInt(SPDie, dwarf::DW_AT_APPLE_isa, dwarf::DW_FORM_flag, isa); } |