diff options
Diffstat (limited to 'llvm/include/llvm/IR/DIBuilder.h')
-rw-r--r-- | llvm/include/llvm/IR/DIBuilder.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/DIBuilder.h b/llvm/include/llvm/IR/DIBuilder.h index d3aad3719900..c635659fd625 100644 --- a/llvm/include/llvm/IR/DIBuilder.h +++ b/llvm/include/llvm/IR/DIBuilder.h @@ -221,6 +221,23 @@ namespace llvm { /// \param SizeInBits Size of the type. DIStringType *createStringType(StringRef Name, uint64_t SizeInBits); + /// Create debugging information entry for Fortran + /// assumed length string type. + /// \param Name Type name. + /// \param StringLength String length expressed as DIVariable *. + /// \param StrLocationExp Optional memory location of the string. + DIStringType *createStringType(StringRef Name, DIVariable *StringLength, + DIExpression *StrLocationExp = nullptr); + + /// Create debugging information entry for Fortran + /// assumed length string type. + /// \param Name Type name. + /// \param StringLengthExp String length expressed in DIExpression form. + /// \param StrLocationExp Optional memory location of the string. + DIStringType *createStringType(StringRef Name, + DIExpression *StringLengthExp, + DIExpression *StrLocationExp = nullptr); + /// Create debugging information entry for a qualified /// type, e.g. 'const int'. /// \param Tag Tag identifing type, e.g. dwarf::TAG_volatile_type |