diff options
Diffstat (limited to 'llvm/lib/VMCore/DIBuilder.cpp')
-rw-r--r-- | llvm/lib/VMCore/DIBuilder.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/llvm/lib/VMCore/DIBuilder.cpp b/llvm/lib/VMCore/DIBuilder.cpp index 6a29a02399b..f5894e9a32e 100644 --- a/llvm/lib/VMCore/DIBuilder.cpp +++ b/llvm/lib/VMCore/DIBuilder.cpp @@ -640,30 +640,6 @@ DIType DIBuilder::createArtificialType(DIType Ty) { return DIType(MDNode::get(VMContext, Elts)); } -/// createArtificialType - Create a new DIType with "artificial" flag set. -DIType DIBuilder::createObjectPointerType(DIType Ty) { - if (Ty.isObjectPointer()) - return Ty; - - SmallVector<Value *, 9> Elts; - MDNode *N = Ty; - assert (N && "Unexpected input DIType!"); - for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i) { - if (Value *V = N->getOperand(i)) - Elts.push_back(V); - else - Elts.push_back(Constant::getNullValue(Type::getInt32Ty(VMContext))); - } - - unsigned CurFlags = Ty.getFlags(); - CurFlags = CurFlags | (DIType::FlagObjectPointer | DIType::FlagArtificial); - - // Flags are stored at this slot. - Elts[8] = ConstantInt::get(Type::getInt32Ty(VMContext), CurFlags); - - return DIType(MDNode::get(VMContext, Elts)); -} - /// retainType - Retain DIType in a module even if it is not referenced /// through debug info anchors. void DIBuilder::retainType(DIType T) { |