diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-02-12 00:40:41 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-02-12 00:40:41 +0000 |
commit | 2ce067a9fb5b2d046c92519428cafa71fae81ed4 (patch) | |
tree | 2e212ac49f63f67a494c2d0ec9bd335bc67bd98d /lib/IR/DIBuilder.cpp | |
parent | 6c3daabc3ee51a8fcb804e0f110f01e59e0e6d61 (diff) | |
download | external_llvm-2ce067a9fb5b2d046c92519428cafa71fae81ed4.zip external_llvm-2ce067a9fb5b2d046c92519428cafa71fae81ed4.tar.gz external_llvm-2ce067a9fb5b2d046c92519428cafa71fae81ed4.tar.bz2 |
DIBuilder: make the return type of createBasicType more specific
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174924 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/DIBuilder.cpp')
-rw-r--r-- | lib/IR/DIBuilder.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/IR/DIBuilder.cpp b/lib/IR/DIBuilder.cpp index cc397cd..df1a81f 100644 --- a/lib/IR/DIBuilder.cpp +++ b/lib/IR/DIBuilder.cpp @@ -162,9 +162,9 @@ DIType DIBuilder::createNullPtrType(StringRef Name) { /// createBasicType - Create debugging information entry for a basic /// type, e.g 'char'. -DIType DIBuilder::createBasicType(StringRef Name, uint64_t SizeInBits, - uint64_t AlignInBits, - unsigned Encoding) { +DIBasicType +DIBuilder::createBasicType(StringRef Name, uint64_t SizeInBits, + uint64_t AlignInBits, unsigned Encoding) { assert(!Name.empty() && "Unable to create type without name"); // Basic types are encoded in DIBasicType format. Line number, filename, // offset and flags are always empty here. @@ -180,7 +180,7 @@ DIType DIBuilder::createBasicType(StringRef Name, uint64_t SizeInBits, ConstantInt::get(Type::getInt32Ty(VMContext), 0), // Flags; ConstantInt::get(Type::getInt32Ty(VMContext), Encoding) }; - return DIType(MDNode::get(VMContext, Elts)); + return DIBasicType(MDNode::get(VMContext, Elts)); } /// createQualifiedType - Create debugging information entry for a qualified |