diff options
author | Devang Patel <dpatel@apple.com> | 2009-04-11 00:16:47 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-04-11 00:16:47 +0000 |
commit | 962aaafe60b3a60b3bd5b97a82a48da0fe4d41b9 (patch) | |
tree | 12744ff1819cbe961dd7bb2cd639bb1003045508 /lib/Target/X86 | |
parent | 5e8aa98a675b57e930ddb2c5222b06d126908d35 (diff) | |
download | external_llvm-962aaafe60b3a60b3bd5b97a82a48da0fe4d41b9.zip external_llvm-962aaafe60b3a60b3bd5b97a82a48da0fe4d41b9.tar.gz external_llvm-962aaafe60b3a60b3bd5b97a82a48da0fe4d41b9.tar.bz2 |
Keep track of inlined functions and their locations. This information is collected when nested llvm.dbg.func.start intrinsics are seen. (Right now, inliner removes nested llvm.dbg.func.start intrinisics during inlining.)
Create debug_inlined dwarf section using these information. This info is used by gdb, at least on Darwin, to enable better experience debugging inlined functions. See DwarfWriter.cpp for more information on structure of debug_inlined section.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68847 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r-- | lib/Target/X86/X86TargetAsmInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/X86/X86TargetAsmInfo.cpp b/lib/Target/X86/X86TargetAsmInfo.cpp index f1d97a3..666756b 100644 --- a/lib/Target/X86/X86TargetAsmInfo.cpp +++ b/lib/Target/X86/X86TargetAsmInfo.cpp @@ -112,6 +112,7 @@ X86DarwinTargetAsmInfo::X86DarwinTargetAsmInfo(const X86TargetMachine &TM): DwarfFrameSection = ".section __DWARF,__debug_frame,regular,debug"; DwarfPubNamesSection = ".section __DWARF,__debug_pubnames,regular,debug"; DwarfPubTypesSection = ".section __DWARF,__debug_pubtypes,regular,debug"; + DwarfDebugInlineSection = ".section __DWARF,__debug_inlined,regular,debug"; DwarfStrSection = ".section __DWARF,__debug_str,regular,debug"; DwarfLocSection = ".section __DWARF,__debug_loc,regular,debug"; DwarfARangesSection = ".section __DWARF,__debug_aranges,regular,debug"; |