llvm/lib/MC
Chandler Carruth ac03e736c7 Rewrite the CMake build to use explicit dependencies between libraries,
specified in the same file that the library itself is created. This is
more idiomatic for CMake builds, and also allows us to correctly specify
dependencies that are missed due to bugs in the GenLibDeps perl script,
or change from compiler to compiler. On Linux, this returns CMake to
a place where it can relably rebuild several targets of LLVM.

I have tried not to change the dependencies from the ones in the current
auto-generated file. The only places I've really diverged are in places
where I was seeing link failures, and added a dependency. The goal of
this patch is not to start changing the dependencies, merely to move
them into the correct location, and an explicit form that we can control
and change when necessary.

This also removes a serialization point in the build because we don't
have to scan all the libraries before we begin building various tools.
We no longer have a step of the build that regenerates a file inside the
source tree. A few other associated cleanups fall out of this.

This isn't really finished yet though. After talking to dgregor he urged
switching to a single CMake macro to construct libraries with both
sources and dependencies in the arguments. Migrating from the two macros
to that style will be a follow-up patch.

Also, llvm-config is still generated with GenLibDeps.pl, which means it
still has slightly buggy dependencies. The internal CMake
'llvm-config-like' macro uses the correct explicitly specified
dependencies however. A future patch will switch llvm-config generation
(when using CMake) to be based on these deps as well.

This may well break Windows. I'm getting a machine set up now to dig
into any failures there. If anyone can chime in with problems they see
or ideas of how to solve them for Windows, much appreciated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136433 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-29 00:14:25 +00:00
..
MCDisassembler Rewrite the CMake build to use explicit dependencies between libraries, 2011-07-29 00:14:25 +00:00
MCParser Rewrite the CMake build to use explicit dependencies between libraries, 2011-07-29 00:14:25 +00:00
CMakeLists.txt Rewrite the CMake build to use explicit dependencies between libraries, 2011-07-29 00:14:25 +00:00
ELFObjectWriter.cpp Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to createMCAsmBackend. 2011-07-25 23:24:55 +00:00
ELFObjectWriter.h Address the last bit of relocation flag related divergence betweeen 2011-05-11 22:53:06 +00:00
MachObjectWriter.cpp Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to createMCAsmBackend. 2011-07-25 23:24:55 +00:00
Makefile start straightening out libedis's dependencies and make it fit 2010-07-20 18:25:19 +00:00
MCAsmBackend.cpp Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to createMCAsmBackend. 2011-07-25 23:24:55 +00:00
MCAsmInfo.cpp Support .code32 and .code64 in X86 assembler. 2011-07-27 00:38:12 +00:00
MCAsmInfoCOFF.cpp Roll out r126425 and r126450 to see if it fixes the failures on the buildbots. 2011-02-25 16:30:32 +00:00
MCAsmInfoDarwin.cpp Rename DwarfRequiresRelocationForStmtList to 2011-05-10 20:35:05 +00:00
MCAsmStreamer.cpp Support .code32 and .code64 in X86 assembler. 2011-07-27 00:38:12 +00:00
MCAssembler.cpp Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to createMCAsmBackend. 2011-07-25 23:24:55 +00:00
MCCodeEmitter.cpp MC: Move target specific fixup info descriptors to TargetAsmBackend instead of 2010-12-16 03:20:06 +00:00
MCCodeGenInfo.cpp - Move CodeModel from a TargetMachine global option to MCCodeGenInfo. 2011-07-20 07:51:56 +00:00
MCContext.cpp Goodbye TargetAsmInfo. This eliminate last bit of CodeGen and Target in llvm-mc. 2011-07-20 19:50:42 +00:00
MCDisassembler.cpp No newline at end of files. 2009-10-05 18:43:19 +00:00
MCDwarf.cpp Emit the __compact_unwind section first. If there are any frames which weren't 2011-07-22 21:18:59 +00:00
MCELF.cpp Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to createMCAsmBackend. 2011-07-25 23:24:55 +00:00
MCELF.h Make all static functions become static class methods. Move shared (duplicated) functions to new MCELF class. 2011-02-28 21:45:04 +00:00
MCELFObjectTargetWriter.cpp Move some data to the TargetWriter. 2010-12-18 03:27:34 +00:00
MCELFStreamer.cpp Support .code32 and .code64 in X86 assembler. 2011-07-27 00:38:12 +00:00
MCELFStreamer.h Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to createMCAsmBackend. 2011-07-25 23:24:55 +00:00
MCExpr.cpp Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to createMCAsmBackend. 2011-07-25 23:24:55 +00:00
MCInst.cpp MC: Change MCInst::dump_pretty to not include a trailing newline. 2010-05-26 15:18:13 +00:00
MCInstPrinter.cpp Don't hardcode the %reg format in the streamer. 2011-06-02 02:34:55 +00:00
MCLabel.cpp Added support in MC for Directional Local Labels. 2010-05-17 23:08:19 +00:00
MCLoggingStreamer.cpp Unfortunately several files in MC are badly violating layering rule by using 2011-07-14 05:43:07 +00:00
MCMachObjectTargetWriter.cpp MC/Mach-O: On second thought, use a custom hook for enabling aggressive 2010-12-17 05:50:29 +00:00
MCMachOStreamer.cpp Support .code32 and .code64 in X86 assembler. 2011-07-27 00:38:12 +00:00
MCNullStreamer.cpp Unfortunately several files in MC are badly violating layering rule by using 2011-07-14 05:43:07 +00:00
MCObjectFileInfo.cpp X86 is the only target that uses coff format. This should fixes test failures running on Windows, Cygwin, or MingW hosts. 2011-07-20 23:53:54 +00:00
MCObjectStreamer.cpp Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to createMCAsmBackend. 2011-07-25 23:24:55 +00:00
MCObjectWriter.cpp Gas is very inconsistent about when a relaxation/relocation is needed. Do 2011-02-16 03:25:55 +00:00
MCPureStreamer.cpp Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to createMCAsmBackend. 2011-07-25 23:24:55 +00:00
MCSection.cpp switch MCSectionCOFF from a syntactic to semantic representation, 2010-05-07 17:17:41 +00:00
MCSectionCOFF.cpp make isVirtualSection a virtual method on MCSection. Chris' suggestion. 2010-11-17 20:03:54 +00:00
MCSectionELF.cpp Be nice to Xcore and the XMOS assembler and avoid quoting section names 2011-03-04 20:03:14 +00:00
MCSectionMachO.cpp Reapply 127939 since Daniel fixed the breakage. <rdar://problem/9012638> 2011-03-19 02:42:31 +00:00
MCStreamer.cpp Add a method to set compact unwind encoding information in a frame. 2011-07-19 00:01:42 +00:00
MCSubtargetInfo.cpp - Eliminate MCCodeEmitter's dependency on TargetMachine. It now uses MCInstrInfo 2011-07-11 03:57:24 +00:00
MCSymbol.cpp MC: Change variable symbols to be recognized as defined, by assigning their sections based on FindAssociatedSection(). 2011-04-29 18:20:17 +00:00
MCTargetAsmLexer.cpp Rename TargetAsmParser to MCTargetAsmParser and TargetAsmLexer to MCTargetAsmLexer; rename createAsmLexer to createMCAsmLexer and createAsmParser to createMCAsmParser. 2011-07-26 00:24:13 +00:00
MCValue.cpp MCValue: Change to holding MCSymbolRefExprs instead of MCSymbols, we will need this for accessing to symbol modifiers. 2010-03-18 00:59:10 +00:00
MCWin64EH.cpp Add MCObjectFileInfo and sink the MCSections initialization code from 2011-07-20 05:58:47 +00:00
SubtargetFeature.cpp Change createAsmParser to take a MCSubtargetInfo instead of triple, 2011-07-09 05:47:46 +00:00
WinCOFFObjectWriter.cpp Refactor X86 target to separate MC code from Target code. 2011-07-25 18:43:53 +00:00
WinCOFFStreamer.cpp Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to createMCAsmBackend. 2011-07-25 23:24:55 +00:00