From 99f990be64804d1880f762609ec9b49added691a Mon Sep 17 00:00:00 2001 From: YASHASVI KHATAVKAR Date: Thu, 27 Jan 2022 14:19:10 -0500 Subject: Added StringLocationExp to the new apis --- llvm/lib/IR/DIBuilder.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'llvm/lib/IR/DIBuilder.cpp') diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp index 9b66b36..1e8ebd7 100644 --- a/llvm/lib/IR/DIBuilder.cpp +++ b/llvm/lib/IR/DIBuilder.cpp @@ -294,17 +294,19 @@ DIStringType *DIBuilder::createStringType(StringRef Name, uint64_t SizeInBits) { } DIStringType *DIBuilder::createStringType(StringRef Name, - PointerUnionStringLength, Metadata *StrLocationExp) { + Metadata *StringLength, + Metadata *StrLocationExp) { assert(!Name.empty() && "Unable to create type without name"); return DIStringType::get(VMContext, dwarf::DW_TAG_string_type, Name, StringLength, nullptr, StrLocationExp, 0, 0, 0); } DIStringType *DIBuilder::createStringTypeExp(StringRef Name, - DIExpression *StringLengthExp, Metadata *StrLocationExp) { + DIExpression *StringLengthExp, + Metadata *StrLocationExp) { assert(!Name.empty() && "Unable to create type without name"); return DIStringType::get(VMContext, dwarf::DW_TAG_string_type, Name, nullptr, - StringLengthExp,StrLocationExp, 0, 0, 0); + StringLengthExp, StrLocationExp, 0, 0, 0); } DIDerivedType *DIBuilder::createQualifiedType(unsigned Tag, DIType *FromTy) { -- cgit v1.1