llvm-6502/lib
Rafael Espindola 6880f0e19f Fix PR18743.
The IR
@foo = private constant i32 42

is valid, but before this patch we would produce an invalid MachO from it. It
was invalid because it would use an L label in a section where the liker needs
the labels in order to atomize it.

One way of fixing it would be to just reject this IR in the backend, but that
would not be very front end friendly.

What this patch does is use an 'l' prefix in sections that we know the linker
requires symbols for atomizing them. This allows frontends to just use
private and not worry about which sections they go to or how the linker handles
them.

One small issue with this strategy is that now a symbol name depends on the
section, which is not available before codegen. This is not a problem in
practice. The reason is that it only happens with private linkage, which will
be ignored by the non codegen users (llvm-nm and llvm-ar).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201608 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-18 22:24:57 +00:00
..
Analysis Rename some member variables from TD to DL. 2014-02-18 15:33:12 +00:00
AsmParser [ms-cxxabi] Add a new calling convention that swaps 'this' and 'sret' 2014-01-31 17:41:22 +00:00
Bitcode
CodeGen Fix PR18743. 2014-02-18 22:24:57 +00:00
DebugInfo Support DWARF discriminators in object streamer. 2014-02-14 19:27:53 +00:00
ExecutionEngine Fix PR18743. 2014-02-18 22:24:57 +00:00
IR Fix PR18743. 2014-02-18 22:24:57 +00:00
IRReader Make parseBitcodeFile return an ErrorOr<Module *>. 2014-01-15 01:08:23 +00:00
LineEditor Avoid using EL_GETFP. 2014-02-04 20:04:46 +00:00
Linker Add a -suppress-warnings option to bitcode linking. 2014-02-06 18:01:56 +00:00
LTO Fix PR18743. 2014-02-18 22:24:57 +00:00
MC Add support for assigning to . in AsmParser. 2014-02-17 20:48:32 +00:00
Object Change the begin and end methods in ObjectFile to match the style guide. 2014-02-10 20:24:04 +00:00
Option
Support Use mkdir instead of stat+mkdir. 2014-02-13 16:58:19 +00:00
TableGen
Target Fix PR18743. 2014-02-18 22:24:57 +00:00
Transforms Rename some member variables from TD to DL. 2014-02-18 15:33:12 +00:00
CMakeLists.txt Introduce line editor library. 2014-01-31 23:46:14 +00:00
LLVMBuild.txt
Makefile