mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 03:29:57 +00:00
3170ad7431
If a symbol is locally defined and is DLL imported in another translation unit, and the object with the locally defined version is loaded prior to the imported version, then the linker will fail to resolve the definition of the thunk and return the locally defined symbol. This will then be attempted to be cast to an import thunk, which will clearly fail. Only return the thunk if the symbol is inserted or a thunk is created. Otherwise, report a duplication error. llvm-svn: 312386
10 lines
125 B
LLVM
10 lines
125 B
LLVM
define void @_DllMainCRTStartup() {
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
define dllexport void @f() local_unnamed_addr {
|
|
entry:
|
|
ret void
|
|
}
|