diff options
| author | Reid Kleckner <rnk@google.com> | 2018-10-23 20:54:43 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2018-10-23 20:54:43 +0000 |
| commit | db367e952e8198706ab73ffc5f7bd7ba3e8164c8 (patch) | |
| tree | 977f058f782de3ca35000f6a9483299003436adc /llvm/test/ExecutionEngine | |
| parent | 841796decdcc7818736a7f7ba28fc636a6a497d2 (diff) | |
| download | bcm5719-llvm-db367e952e8198706ab73ffc5f7bd7ba3e8164c8.tar.gz bcm5719-llvm-db367e952e8198706ab73ffc5f7bd7ba3e8164c8.zip | |
Revert r345077 "[ORC] Change how non-exported symbols are matched during lookup."
Doesn't build on Windows. The call to 'lookup' is ambiguous. Clang and
MSVC agree, anyway.
http://lab.llvm.org:8011/builders/clang-x64-windows-msvc/builds/787
C:\b\slave\clang-x64-windows-msvc\build\llvm.src\unittests\ExecutionEngine\Orc\CoreAPIsTest.cpp(315): error C2668: 'llvm::orc::ExecutionSession::lookup': ambiguous call to overloaded function
C:\b\slave\clang-x64-windows-msvc\build\llvm.src\include\llvm/ExecutionEngine/Orc/Core.h(823): note: could be 'llvm::Expected<llvm::JITEvaluatedSymbol> llvm::orc::ExecutionSession::lookup(llvm::ArrayRef<llvm::orc::JITDylib *>,llvm::orc::SymbolStringPtr)'
C:\b\slave\clang-x64-windows-msvc\build\llvm.src\include\llvm/ExecutionEngine/Orc/Core.h(817): note: or 'llvm::Expected<llvm::JITEvaluatedSymbol> llvm::orc::ExecutionSession::lookup(const llvm::orc::JITDylibSearchList &,llvm::orc::SymbolStringPtr)'
C:\b\slave\clang-x64-windows-msvc\build\llvm.src\unittests\ExecutionEngine\Orc\CoreAPIsTest.cpp(315): note: while trying to match the argument list '(initializer list, llvm::orc::SymbolStringPtr)'
llvm-svn: 345078
Diffstat (limited to 'llvm/test/ExecutionEngine')
| -rw-r--r-- | llvm/test/ExecutionEngine/OrcLazy/Inputs/hidden-definitions.ll | 6 | ||||
| -rw-r--r-- | llvm/test/ExecutionEngine/OrcLazy/hidden-visibility.ll | 17 |
2 files changed, 0 insertions, 23 deletions
diff --git a/llvm/test/ExecutionEngine/OrcLazy/Inputs/hidden-definitions.ll b/llvm/test/ExecutionEngine/OrcLazy/Inputs/hidden-definitions.ll deleted file mode 100644 index 8d1f4b9cc5c..00000000000 --- a/llvm/test/ExecutionEngine/OrcLazy/Inputs/hidden-definitions.ll +++ /dev/null @@ -1,6 +0,0 @@ -@bar = hidden global i32 0 - -define hidden i32 @foo() { -entry: - ret i32 0 -} diff --git a/llvm/test/ExecutionEngine/OrcLazy/hidden-visibility.ll b/llvm/test/ExecutionEngine/OrcLazy/hidden-visibility.ll deleted file mode 100644 index 199fd644bff..00000000000 --- a/llvm/test/ExecutionEngine/OrcLazy/hidden-visibility.ll +++ /dev/null @@ -1,17 +0,0 @@ -; RUN: lli -jit-kind=orc-lazy -extra-module %p/Inputs/hidden-definitions.ll %s -; RUN: not lli -jit-kind=orc-lazy -jd libFoo -extra-module %p/Inputs/hidden-definitions.ll %s -; -; Check that hidden symbols in another module are visible when the module is -; added to the same JITDylib, and not visible if it is added to a different -; JITDylib. - -@bar = external global i32 -declare i32 @foo() - -define i32 @main(i32 %argc, i8** nocapture readnone %argv) { -entry: - %0 = call i32() @foo() - %1 = load i32, i32* @bar - %2 = add i32 %0, %1 - ret i32 %2 -} |

