[ExecutionEngine] Remove cruft and fix a couple of warnings in the test case for
authorLang Hames <lhames@gmail.com>
Sat, 11 Jul 2015 01:59:04 +0000 (01:59 +0000)
committerLang Hames <lhames@gmail.com>
Sat, 11 Jul 2015 01:59:04 +0000 (01:59 +0000)
r241962.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241973 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/ExecutionEngine/MCJIT/MCJITTest.cpp

index 7b9cb6cd57e57a8581ab74dcc3ae2b10f9b4df21..284434e3c62cdb04c82f8ff2c56720d40d8e700a 100644 (file)
@@ -206,7 +206,7 @@ TEST_F(MCJITTest, lazy_function_creator_pointer) {
   
   Function *Foo = insertExternalReferenceToFunction<int32_t(void)>(M.get(),
                                                                    "\1Foo");
   
   Function *Foo = insertExternalReferenceToFunction<int32_t(void)>(M.get(),
                                                                    "\1Foo");
-  Function *Parent = startFunction<int32_t(void)>(M.get(), "Parent");
+  startFunction<int32_t(void)>(M.get(), "Parent");
   CallInst *Call = Builder.CreateCall(Foo, {});
   Builder.CreateRet(Call);
   
   CallInst *Call = Builder.CreateCall(Foo, {});
   Builder.CreateRet(Call);
   
@@ -236,7 +236,7 @@ TEST_F(MCJITTest, lazy_function_creator_lambda) {
                                                                    "\1Foo1");
   Function *Foo2 = insertExternalReferenceToFunction<int32_t(void)>(M.get(),
                                                                    "\1Foo2");
                                                                    "\1Foo1");
   Function *Foo2 = insertExternalReferenceToFunction<int32_t(void)>(M.get(),
                                                                    "\1Foo2");
-  Function *Parent = startFunction<int32_t(void)>(M.get(), "Parent");
+  startFunction<int32_t(void)>(M.get(), "Parent");
   CallInst *Call1 = Builder.CreateCall(Foo1, {});
   CallInst *Call2 = Builder.CreateCall(Foo2, {});
   Value *Result = Builder.CreateAdd(Call1, Call2);
   CallInst *Call1 = Builder.CreateCall(Foo1, {});
   CallInst *Call2 = Builder.CreateCall(Foo2, {});
   Value *Result = Builder.CreateAdd(Call1, Call2);
@@ -248,7 +248,6 @@ TEST_F(MCJITTest, lazy_function_creator_lambda) {
   // external functions in the module.
   std::vector<std::string> UnresolvedExternals;
   auto UnresolvedHandler = [&UnresolvedExternals] (const std::string &str) {
   // external functions in the module.
   std::vector<std::string> UnresolvedExternals;
   auto UnresolvedHandler = [&UnresolvedExternals] (const std::string &str) {
-    llvm:dbgs() << "str is '" << str << "'\n";
     UnresolvedExternals.push_back(str);
     return (void *)(uintptr_t)-1;
   };
     UnresolvedExternals.push_back(str);
     return (void *)(uintptr_t)-1;
   };