diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-05-10 21:52:07 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-05-10 21:52:07 +0000 |
commit | 4de9d72883eebe4e86bffdaad89483dfe822e2a5 (patch) | |
tree | 6a8943e3e03b77597c5e99a823c85156bb5ab422 /lib/IR/DIBuilder.cpp | |
parent | fd4ccda4a56d1664b43ca7ed9909254f6de592bb (diff) | |
download | external_llvm-4de9d72883eebe4e86bffdaad89483dfe822e2a5.zip external_llvm-4de9d72883eebe4e86bffdaad89483dfe822e2a5.tar.gz external_llvm-4de9d72883eebe4e86bffdaad89483dfe822e2a5.tar.bz2 |
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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181632 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/DIBuilder.cpp')
-rw-r--r-- | lib/IR/DIBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/IR/DIBuilder.cpp b/lib/IR/DIBuilder.cpp index eb220b2..4bb87c9 100644 --- a/lib/IR/DIBuilder.cpp +++ b/lib/IR/DIBuilder.cpp @@ -502,7 +502,7 @@ DIBuilder::createTemplateTypeParameter(DIDescriptor Context, StringRef Name, /// value parameter. DITemplateValueParameter DIBuilder::createTemplateValueParameter(DIDescriptor Context, StringRef Name, - DIType Ty, uint64_t Val, + DIType Ty, Value *Val, MDNode *File, unsigned LineNo, unsigned ColumnNo) { Value *Elts[] = { @@ -510,7 +510,7 @@ DIBuilder::createTemplateValueParameter(DIDescriptor Context, StringRef Name, getNonCompileUnitScope(Context), MDString::get(VMContext, Name), Ty, - ConstantInt::get(Type::getInt64Ty(VMContext), Val), + Val, File, ConstantInt::get(Type::getInt32Ty(VMContext), LineNo), ConstantInt::get(Type::getInt32Ty(VMContext), ColumnNo) |