diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-02-12 15:28:45 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-02-12 15:28:45 +0000 |
commit | cbc31d699b75b6d14ac50117386814270cd6a859 (patch) | |
tree | fbf4863da9a3a48650b9bfca492328b880575ea4 /llvm/unittests/Linker/LinkModulesTest.cpp | |
parent | 397eb7b0b39b8cee689c991e31be42da936f7d59 (diff) | |
download | bcm5719-llvm-cbc31d699b75b6d14ac50117386814270cd6a859.tar.gz bcm5719-llvm-cbc31d699b75b6d14ac50117386814270cd6a859.zip |
Delete the deprecated LLVMLinkModules.
llvm-svn: 260683
Diffstat (limited to 'llvm/unittests/Linker/LinkModulesTest.cpp')
-rw-r--r-- | llvm/unittests/Linker/LinkModulesTest.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/llvm/unittests/Linker/LinkModulesTest.cpp b/llvm/unittests/Linker/LinkModulesTest.cpp index 322a44f8aaf..10a89f39869 100644 --- a/llvm/unittests/Linker/LinkModulesTest.cpp +++ b/llvm/unittests/Linker/LinkModulesTest.cpp @@ -202,30 +202,6 @@ TEST_F(LinkModuleTest, TypeMerge) { M1->getNamedGlobal("t2")->getType()); } -TEST_F(LinkModuleTest, CAPISuccess) { - std::unique_ptr<Module> DestM(getExternal(Ctx, "foo")); - std::unique_ptr<Module> SourceM(getExternal(Ctx, "bar")); - char *errout = nullptr; - LLVMBool result = LLVMLinkModules(wrap(DestM.get()), wrap(SourceM.get()), - LLVMLinkerDestroySource, &errout); - EXPECT_EQ(0, result); - EXPECT_EQ(nullptr, errout); - // "bar" is present in destination module - EXPECT_NE(nullptr, DestM->getFunction("bar")); -} - -TEST_F(LinkModuleTest, CAPIFailure) { - // Symbol clash between two modules - std::unique_ptr<Module> DestM(getExternal(Ctx, "foo")); - std::unique_ptr<Module> SourceM(getExternal(Ctx, "foo")); - char *errout = nullptr; - LLVMBool result = LLVMLinkModules(wrap(DestM.get()), wrap(SourceM.get()), - LLVMLinkerDestroySource, &errout); - EXPECT_EQ(1, result); - EXPECT_STREQ("Linking globals named 'foo': symbol multiply defined!", errout); - LLVMDisposeMessage(errout); -} - TEST_F(LinkModuleTest, NewCAPISuccess) { std::unique_ptr<Module> DestM(getExternal(Ctx, "foo")); std::unique_ptr<Module> SourceM(getExternal(Ctx, "bar")); |