hanchenye-llvm-project/llvm/lib
Jim Grosbach 38b1ed8ce2 Move some ELF directives into ELF asm parser.
The .local, .hidden, .internal, and .protected are not legal for all supported
file formats (in particular, they're invalid for MachO). Move the parsing for
them into the ELF assembly parser since that's the format they're for.
Similarly, .weak is used by COFF and ELF, but not MachO, so move the parsing
to the COFF and ELF asm parsers. Previously, using any of these directives
on Darwin would result in an assertion failure in the parser; now we get
a diagnostic as we should.

rdar://9827089

llvm-svn: 135921
2011-07-25 17:55:35 +00:00
..
Analysis Shorten some expressions by using ArrayRef::slice(). 2011-07-25 15:13:01 +00:00
Archive Revert PathV2 changes, as sys::fs::unique_file is not finished yet. 2011-03-01 19:50:55 +00:00
AsmParser Convert GetElementPtrInst to use ArrayRef. 2011-07-25 09:48:08 +00:00
Bitcode Convert GetElementPtrInst to use ArrayRef. 2011-07-25 09:48:08 +00:00
CodeGen Add an RS_Split2 stage used for loop prevention. 2011-07-25 15:25:43 +00:00
CompilerDriver Build CompilerDriver library. 2011-03-12 22:01:42 +00:00
ExecutionEngine - Move CodeModel from a TargetMachine global option to MCCodeGenInfo. 2011-07-20 07:51:56 +00:00
Linker Migrate LLVM and Clang to use the new makeArrayRef(...) functions where previously explicit non-default constructors were used. 2011-07-18 12:00:32 +00:00
MC Move some ELF directives into ELF asm parser. 2011-07-25 17:55:35 +00:00
Object ObjectFile: Add a method to check whether a section contains a symbol. 2011-07-15 18:39:21 +00:00
Support switch Triple to take twines instead of stringrefs. 2011-07-24 20:45:08 +00:00
Target Set PPCII::MO_DARWIN_STUB only on MacOSX < 10.5. 2011-07-24 08:22:56 +00:00
Transforms Shorten some expressions by using ArrayRef::slice(). 2011-07-25 15:13:01 +00:00
VMCore Use ArrayRef in the (protected) constructors of ConstantArray, ConstantStruct and ConstantVector. 2011-07-25 10:14:44 +00:00
CMakeLists.txt Build CompilerDriver library. 2011-03-12 22:01:42 +00:00
Makefile Add LLVMObject Library. 2010-11-15 03:21:41 +00:00