summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2018-07-11 06:46:17 +0000
committerLang Hames <lhames@gmail.com>2018-07-11 06:46:17 +0000
commit709f773a8884bb74239aac16d91deea8591a5ede (patch)
tree3bfef69281f48e047bbab754b7751757b98a86a6 /llvm/unittests/ExecutionEngine
parent1d6a80cd9544ff89cb8a875ae08569f1cd0f0782 (diff)
downloadbcm5719-llvm-709f773a8884bb74239aac16d91deea8591a5ede.tar.gz
bcm5719-llvm-709f773a8884bb74239aac16d91deea8591a5ede.zip
Revert r336760: "[ORC] Add unit tests for the reexports utility that were..."
This patch broke a few buildbots. I will investigate and re-apply when I have a fix. llvm-svn: 336767
Diffstat (limited to 'llvm/unittests/ExecutionEngine')
-rw-r--r--llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp b/llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp
index 60354cca6f3..68911d75877 100644
--- a/llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp
@@ -300,48 +300,6 @@ TEST_F(CoreAPIsStandardTest, TestChainedAliases) {
<< "\"Baz\"'s address should match \"Foo\"'s";
}
-TEST_F(CoreAPIsStandardTest, TestBasicReExports) {
- // Test that the basic use case of re-exporting a single symbol from another
- // VSO works.
- cantFail(V.define(absoluteSymbols({{Foo, FooSym}})));
-
- auto &V2 = ES.createVSO("V2");
-
- cantFail(V2.define(reexports(V, {{Bar, {Foo, BarSym.getFlags()}}})));
-
- auto Result = cantFail(lookup({&V2}, Bar));
- EXPECT_EQ(Result.getAddress(), FooSym.getAddress())
- << "Re-export Bar for symbol Foo should match FooSym's address";
-}
-
-TEST_F(CoreAPIsStandardTest, TestThatReExportsDontUnnecessarilyMaterialize) {
- // Test that re-exports do not materialize symbols that have not been queried
- // for.
- cantFail(V.define(absoluteSymbols({{Foo, FooSym}})));
-
- bool BarMaterialized = false;
- auto BarMU = llvm::make_unique<SimpleMaterializationUnit>(
- SymbolFlagsMap({{Bar, BarSym.getFlags()}}),
- [&](MaterializationResponsibility R) {
- BarMaterialized = true;
- R.resolve({{Bar, BarSym}});
- R.finalize();
- });
-
- cantFail(V.define(BarMU));
-
- auto &V2 = ES.createVSO("V2");
-
- cantFail(V2.define(reexports(
- V, {{Baz, {Foo, BazSym.getFlags()}}, {Qux, {Bar, QuxSym.getFlags()}}})));
-
- auto Result = cantFail(lookup({&V2}, Baz));
- EXPECT_EQ(Result.getAddress(), FooSym.getAddress())
- << "Re-export Baz for symbol Foo should match FooSym's address";
-
- EXPECT_FALSE(BarMaterialized) << "Bar should not have been materialized";
-}
-
TEST_F(CoreAPIsStandardTest, TestTrivialCircularDependency) {
Optional<MaterializationResponsibility> FooR;
auto FooMU = llvm::make_unique<SimpleMaterializationUnit>(
OpenPOWER on IntegriCloud