llvm-6502/lib/Object
Peter Collingbourne 6170134a1f Object: Prepend __imp_ when mangling a dllimport symbol in IRObjectFile.
We cannot prepend __imp_ in the IR mangler because a function reference may
be emitted unmangled in a constant initializer. The linker is expected to
resolve such references to thunks. This is covered by the new test case.

Strictly speaking we ought to emit two undefined symbols, one with __imp_ and
one without, as we cannot know which symbol the final object file will refer
to. However, this would require rather intrusive changes to IRObjectFile,
and lld works fine without it for now.

This reimplements r239437, which was reverted in r239502.

Differential Revision: http://reviews.llvm.org/D10400

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239560 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-11 21:42:18 +00:00
..
Archive.cpp Remove object_error::success and use std::error_code() instead 2015-06-09 15:20:42 +00:00
ArchiveWriter.cpp Fix Windows build. 2015-06-08 02:43:32 +00:00
Binary.cpp
CMakeLists.txt llvm-ar: Move archive writer to Object. 2015-06-08 02:32:01 +00:00
COFFObjectFile.cpp Remove object_error::success and use std::error_code() instead 2015-06-09 15:20:42 +00:00
COFFYAML.cpp
ELF.cpp
ELFObjectFile.cpp [Object, ELF] Don't assert on invalid magic in createELFObjectFile. 2015-06-04 23:14:43 +00:00
ELFYAML.cpp [llvm-readobj/obj2yaml/yaml2obj] Support MIPS machine ELF header flags 2015-05-08 07:04:59 +00:00
Error.cpp Remove object_error::success and use std::error_code() instead 2015-06-09 15:20:42 +00:00
IRObjectFile.cpp Object: Prepend __imp_ when mangling a dllimport symbol in IRObjectFile. 2015-06-11 21:42:18 +00:00
LLVMBuild.txt
MachOObjectFile.cpp Remove object_error::success and use std::error_code() instead 2015-06-09 15:20:42 +00:00
MachOUniversal.cpp Remove object_error::success and use std::error_code() instead 2015-06-09 15:20:42 +00:00
Makefile
Object.cpp Move to llvm-objdump a large amount of code to that is only used there. 2015-06-03 04:48:06 +00:00
ObjectFile.cpp Remove object_error::success and use std::error_code() instead 2015-06-09 15:20:42 +00:00
RecordStreamer.cpp Move alignment from MCSectionData to MCSection. 2015-05-21 19:20:38 +00:00
RecordStreamer.h Move alignment from MCSectionData to MCSection. 2015-05-21 19:20:38 +00:00
SymbolicFile.cpp