llvm.org GIT mirror llvm / feba756
Update unittest for LLVM API change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77730 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 10 years ago
2 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
7474 GTy,
7575 false, // Not constant.
7676 GlobalValue::InternalLinkage,
77 context.getNullValue(GTy),
77 Constant::getNullValue(GTy),
7878 "myglobal");
7979
8080 // Make a function that points to a global.
311311 RVH = BitcastV.get();
312312 std::auto_ptr BitcastUser(
313313 BinaryOperator::CreateAdd(RVH,
314 getGlobalContext().getNullValue(Type::Int32Ty)));
314 Constant::getNullValue(Type::Int32Ty)));
315315 EXPECT_EQ(BitcastV.get(), BitcastUser->getOperand(0));
316316 BitcastV.reset(); // Would crash without the ValueHandler.
317 EXPECT_EQ(getGlobalContext().getNullValue(Type::Int32Ty), RVH.AURWArgument);
318 EXPECT_EQ(getGlobalContext().getNullValue(Type::Int32Ty),
317 EXPECT_EQ(Constant::getNullValue(Type::Int32Ty), RVH.AURWArgument);
318 EXPECT_EQ(Constant::getNullValue(Type::Int32Ty),
319319 BitcastUser->getOperand(0));
320320 }
321321