[llvm] r241973 - [ExecutionEngine] Remove cruft and fix a couple of warnings in the test case for

Lang Hames lhames at gmail.com
Fri Jul 10 18:59:04 PDT 2015


Author: lhames
Date: Fri Jul 10 20:59:04 2015
New Revision: 241973

URL: http://llvm.org/viewvc/llvm-project?rev=241973&view=rev
Log:
[ExecutionEngine] Remove cruft and fix a couple of warnings in the test case for
r241962.


Modified:
    llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITTest.cpp

Modified: llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITTest.cpp?rev=241973&r1=241972&r2=241973&view=diff
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITTest.cpp (original)
+++ llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITTest.cpp Fri Jul 10 20:59:04 2015
@@ -206,7 +206,7 @@ TEST_F(MCJITTest, lazy_function_creator_
   
   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);
   
@@ -236,7 +236,7 @@ TEST_F(MCJITTest, lazy_function_creator_
                                                                    "\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);
@@ -248,7 +248,6 @@ TEST_F(MCJITTest, lazy_function_creator_
   // 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;
   };





More information about the llvm-commits mailing list