diff options
author | Adrian Prantl <aprantl@apple.com> | 2018-08-14 19:35:34 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2018-08-14 19:35:34 +0000 |
commit | 55f426299942abf1c5f90276aaf61846952387b7 (patch) | |
tree | a1c977ae2396cb5acff3bf38090492783e7b77c8 /llvm/lib/IR/DIBuilder.cpp | |
parent | b1546da0e8849d58fcdcf17fa1f2fab0cdae70a4 (diff) | |
download | bcm5719-llvm-55f426299942abf1c5f90276aaf61846952387b7.tar.gz bcm5719-llvm-55f426299942abf1c5f90276aaf61846952387b7.zip |
[DebugInfoMetadata] Added DIFlags interface in DIBasicType.
Flags in DIBasicType will be used to pass attributes used in
DW_TAG_base_type, such as DW_AT_endianity.
Patch by Chirag Patel!
Differential Revision: https://reviews.llvm.org/D49610
llvm-svn: 339714
Diffstat (limited to 'llvm/lib/IR/DIBuilder.cpp')
-rw-r--r-- | llvm/lib/IR/DIBuilder.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp index 5c5477f4f40..ee3323c2afe 100644 --- a/llvm/lib/IR/DIBuilder.cpp +++ b/llvm/lib/IR/DIBuilder.cpp @@ -256,10 +256,11 @@ DIBasicType *DIBuilder::createNullPtrType() { } DIBasicType *DIBuilder::createBasicType(StringRef Name, uint64_t SizeInBits, - unsigned Encoding) { + unsigned Encoding, + DINode::DIFlags Flags) { assert(!Name.empty() && "Unable to create type without name"); return DIBasicType::get(VMContext, dwarf::DW_TAG_base_type, Name, SizeInBits, - 0, Encoding); + 0, Encoding, Flags); } DIDerivedType *DIBuilder::createQualifiedType(unsigned Tag, DIType *FromTy) { |