diff options
author | YASHASVI KHATAVKAR <yashasvi.khatavkar@intel.com> | 2022-01-27 14:19:10 -0500 |
---|---|---|
committer | YASHASVI KHATAVKAR <yashasvi.khatavkar@intel.com> | 2022-02-10 15:24:50 -0500 |
commit | 99f990be64804d1880f762609ec9b49added691a (patch) | |
tree | a0d25385d50b3714853a4e6652c64bd215800dc1 /llvm/lib/IR/DIBuilder.cpp | |
parent | 2c5dfeed2f7713c17ce457b4f82dce052fee1363 (diff) | |
download | llvm-99f990be64804d1880f762609ec9b49added691a.zip llvm-99f990be64804d1880f762609ec9b49added691a.tar.gz llvm-99f990be64804d1880f762609ec9b49added691a.tar.bz2 |
Added StringLocationExp to the new apis
Diffstat (limited to 'llvm/lib/IR/DIBuilder.cpp')
-rw-r--r-- | llvm/lib/IR/DIBuilder.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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, - PointerUnion<Metadata *, DIVariable *>StringLength, 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) { |