Update unittest for LLVM API change.

llvm-svn: 77730
This commit is contained in:
Benjamin Kramer 2009-07-31 20:56:31 +00:00
parent 40e39492e8
commit 3f60efddfa
2 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@ TEST(JIT, GlobalInFunction) {
GTy,
false, // Not constant.
GlobalValue::InternalLinkage,
context.getNullValue(GTy),
Constant::getNullValue(GTy),
"myglobal");
// Make a function that points to a global.

View File

@ -312,11 +312,11 @@ TEST_F(ValueHandle, CallbackVH_DeletionCanRAUW) {
RVH = BitcastV.get();
std::auto_ptr<BinaryOperator> BitcastUser(
BinaryOperator::CreateAdd(RVH,
getGlobalContext().getNullValue(Type::Int32Ty)));
Constant::getNullValue(Type::Int32Ty)));
EXPECT_EQ(BitcastV.get(), BitcastUser->getOperand(0));
BitcastV.reset(); // Would crash without the ValueHandler.
EXPECT_EQ(getGlobalContext().getNullValue(Type::Int32Ty), RVH.AURWArgument);
EXPECT_EQ(getGlobalContext().getNullValue(Type::Int32Ty),
EXPECT_EQ(Constant::getNullValue(Type::Int32Ty), RVH.AURWArgument);
EXPECT_EQ(Constant::getNullValue(Type::Int32Ty),
BitcastUser->getOperand(0));
}