summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DebugInfo.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-05-10 21:52:07 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-05-10 21:52:07 +0000
commita1e813dcd4ecbfb74fd8ae010cfea1f71fd980d2 (patch)
tree69ddcc44078dd0ec6fc6bf96ef23c0b98f9a9bb5 /llvm/lib/IR/DebugInfo.cpp
parent57abc5d6a6f393f488903c5a35e5a898fc201d3a (diff)
downloadbcm5719-llvm-a1e813dcd4ecbfb74fd8ae010cfea1f71fd980d2.tar.gz
bcm5719-llvm-a1e813dcd4ecbfb74fd8ae010cfea1f71fd980d2.zip
PR14492: Debug Info: Support for values of non-integer non-type template parameters.
This is only tested for global variables at the moment (& includes tests for the unnamed parameter case, since apparently this entire function was completely untested previously) llvm-svn: 181632
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r--llvm/lib/IR/DebugInfo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index 38fc90f865e..8a0fb8d5b10 100644
--- a/llvm/lib/IR/DebugInfo.cpp
+++ b/llvm/lib/IR/DebugInfo.cpp
@@ -695,6 +695,10 @@ DIArray DISubprogram::getVariables() const {
return DIArray();
}
+Value *DITemplateValueParameter::getValue() const {
+ return getField(DbgNode, 4);
+}
+
void DIScope::setFilename(StringRef Name, LLVMContext &Context) {
if (!DbgNode)
return;
OpenPOWER on IntegriCloud