diff options
Diffstat (limited to 'llvm/lib/IR/DIBuilder.cpp')
-rw-r--r-- | llvm/lib/IR/DIBuilder.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp index b0700b7..9b66b36 100644 --- a/llvm/lib/IR/DIBuilder.cpp +++ b/llvm/lib/IR/DIBuilder.cpp @@ -294,17 +294,17 @@ DIStringType *DIBuilder::createStringType(StringRef Name, uint64_t SizeInBits) { } DIStringType *DIBuilder::createStringType(StringRef Name, - Metadata *stringLength) { + PointerUnion<Metadata *, DIVariable *>StringLength, Metadata *StrLocationExp) { assert(!Name.empty() && "Unable to create type without name"); return DIStringType::get(VMContext, dwarf::DW_TAG_string_type, Name, - stringLength, nullptr, 0, 0, 0); + StringLength, nullptr, StrLocationExp, 0, 0, 0); } DIStringType *DIBuilder::createStringTypeExp(StringRef Name, - DIExpression *stringLengthExp) { + 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, 0, 0, 0); + StringLengthExp,StrLocationExp, 0, 0, 0); } DIDerivedType *DIBuilder::createQualifiedType(unsigned Tag, DIType *FromTy) { |