summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-02-12 00:40:41 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-02-12 00:40:41 +0000
commit209d63af48cdbb308420952415b72d4e83784ef3 (patch)
tree1be5a939bd729680524803b39480c9cbbf3d9c4f /llvm/lib
parent69357ecb6d4fe8c5d499d7f5e0ae224815106c29 (diff)
downloadbcm5719-llvm-209d63af48cdbb308420952415b72d4e83784ef3.tar.gz
bcm5719-llvm-209d63af48cdbb308420952415b72d4e83784ef3.zip
DIBuilder: make the return type of createBasicType more specific
llvm-svn: 174924
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/IR/DIBuilder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp
index cc397cdf351..df1a81f10bd 100644
--- a/llvm/lib/IR/DIBuilder.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud