aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-04-05 22:52:06 +0000
committerDevang Patel <dpatel@apple.com>2011-04-05 22:52:06 +0000
commitda19475328ece3da19437a2e9eef035dcafa2814 (patch)
tree684e61811d6206c998d94c6690d3f403e5fa5014 /lib/CodeGen
parent76634dfabb02507b73c0baed6fdd98bd5e703c60 (diff)
downloadexternal_llvm-da19475328ece3da19437a2e9eef035dcafa2814.zip
external_llvm-da19475328ece3da19437a2e9eef035dcafa2814.tar.gz
external_llvm-da19475328ece3da19437a2e9eef035dcafa2814.tar.bz2
Add support to encode function's template parameters.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index be5c206..bad87c1 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1455,6 +1455,9 @@ DIE *DwarfDebug::createSubprogramDIE(DISubprogram SP) {
addUInt(SPDie, dwarf::DW_AT_APPLE_isa, dwarf::DW_FORM_flag, isa);
}
+ // Add function template parameters.
+ addTemplateParams(*SPDie, SP.getTemplateParams());
+
// DW_TAG_inlined_subroutine may refer to this DIE.
SPCU->insertDIE(SP, SPDie);