projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1411577
)
Debug Info: Don't bother emitting DW_AT_frame_base if the function has
author
Adrian Prantl
<aprantl@apple.com>
Wed, 14 Jan 2015 00:15:16 +0000
(
00:15
+0000)
committer
Adrian Prantl
<aprantl@apple.com>
Wed, 14 Jan 2015 00:15:16 +0000
(
00:15
+0000)
no frame register. "Tested" via an assertion triggered by DwarfExpression.
llvm-svn: 225858
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index
6901d22
..
fe01980
100644
(file)
--- a/
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@
-295,7
+295,8
@@
DIE &DwarfCompileUnit::updateSubprogramScopeDIE(DISubprogram SP) {
const TargetRegisterInfo *RI =
Asm->TM.getSubtargetImpl()->getRegisterInfo();
MachineLocation Location(RI->getFrameRegister(*Asm->MF));
- addAddress(*SPDie, dwarf::DW_AT_frame_base, Location);
+ if (RI->isPhysicalRegister(Location.getReg()))
+ addAddress(*SPDie, dwarf::DW_AT_frame_base, Location);
}
// Add name to the name table, we do this here because we're guaranteed