[ORC] Strip weak flags from a symbol once it is selected for materialization.
authorLang Hames <lhames@gmail.com>
Thu, 14 Jun 2018 21:16:29 +0000 (21:16 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 14 Jun 2018 21:16:29 +0000 (21:16 +0000)
commit5d6c509944fc2a5873d0a70410c82a6ebd4ae31c
treed3ecf5ca8d6103d015eec13cc7f80e5fa905f974
parent248acf6b57ecb38125aed1ea1d7d547d99e4100f
[ORC] Strip weak flags from a symbol once it is selected for materialization.

Once a symbol has been selected for materialization it can no longer be
overridden. Stripping the weak flag guarantees this (override attempts will
then be treated as duplicate definitions and result in a DuplicateDefinition
error).

llvm-svn: 334771
llvm/lib/ExecutionEngine/Orc/Core.cpp
llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp