Update unittest for LLVM API change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77730 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2009-07-31 20:56:31 +00:00
parent b41fc9f05c
commit feba7562ec
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));
}