summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2015-11-11 18:08:18 +0000
committerDehao Chen <dehao@google.com>2015-11-11 18:08:18 +0000
commit72fdf444b770fe8a7d355d5fe4793db664334302 (patch)
treeb1c780d0331f718e2887f8992e07985b6627eb69 /llvm/lib/Support
parentd4870df9bf3ba1428eefda3a41d77ea684f278eb (diff)
downloadbcm5719-llvm-72fdf444b770fe8a7d355d5fe4793db664334302.tar.gz
bcm5719-llvm-72fdf444b770fe8a7d355d5fe4793db664334302.zip
Emit discriminator for inlined callsites.
Summary: Inlined callsites need to be emitted in debug info so that sample profile can be annotated to the correct inlined instance. Reviewers: dnovillo, dblaikie Subscribers: dblaikie, llvm-commits Differential Revision: http://reviews.llvm.org/D14511 llvm-svn: 252768
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Dwarf.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/Dwarf.cpp b/llvm/lib/Support/Dwarf.cpp
index 13a41557a8d..a6d12725ed0 100644
--- a/llvm/lib/Support/Dwarf.cpp
+++ b/llvm/lib/Support/Dwarf.cpp
@@ -201,6 +201,7 @@ const char *llvm::dwarf::AttributeString(unsigned Attribute) {
case DW_AT_GNU_addr_base: return "DW_AT_GNU_addr_base";
case DW_AT_GNU_pubnames: return "DW_AT_GNU_pubnames";
case DW_AT_GNU_pubtypes: return "DW_AT_GNU_pubtypes";
+ case DW_AT_GNU_discriminator: return "DW_AT_GNU_discriminator";
}
return nullptr;
}
OpenPOWER on IntegriCloud