Update unittest for LLVM API change.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 31 Jul 2009 20:56:31 +0000 (20:56 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 31 Jul 2009 20:56:31 +0000 (20:56 +0000)
llvm-svn: 77730

llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
llvm/unittests/Support/ValueHandleTest.cpp

index abfe931..d5aa091 100644 (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.
index 833c684..d9a5515 100644 (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));
 }