llvm.org GIT mirror llvm / 0ce14f2
[ExecutionEngine] Remove cruft and fix a couple of warnings in the test case for r241962. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241973 91177308-0d34-0410-b5e6-96231b3b80d8 Lang Hames 5 years ago
1 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
205205
206206 Function *Foo = insertExternalReferenceToFunction(M.get(),
207207 "\1Foo");
208 Function *Parent = startFunction(M.get(), "Parent");
208 startFunction(M.get(), "Parent");
209209 CallInst *Call = Builder.CreateCall(Foo, {});
210210 Builder.CreateRet(Call);
211211
235235 "\1Foo1");
236236 Function *Foo2 = insertExternalReferenceToFunction(M.get(),
237237 "\1Foo2");
238 Function *Parent = startFunction(M.get(), "Parent");
238 startFunction(M.get(), "Parent");
239239 CallInst *Call1 = Builder.CreateCall(Foo1, {});
240240 CallInst *Call2 = Builder.CreateCall(Foo2, {});
241241 Value *Result = Builder.CreateAdd(Call1, Call2);
247247 // external functions in the module.
248248 std::vector UnresolvedExternals;
249249 auto UnresolvedHandler = [&UnresolvedExternals] (const std::string &str) {
250 llvm:dbgs() << "str is '" << str << "'\n";
251250 UnresolvedExternals.push_back(str);
252251 return (void *)(uintptr_t)-1;
253252 };