- Jun 26, 2013
-
-
Andy Gibbs authored
Where a source tree is complete with lld, lldb and polly, it may not be possible to use cmake to configure build scripts if the host compiler it not capable of compiling these sub-projects. This change makes it possible to first build a bootstrap clang compiler when can then be used to build a complete llvm toolchain. An example bootstrap build sequence could be as follows: $ mkdir bootstrap $ cd bootstrap $ cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_PREFIX_PATH:STRING=$(pwd) -DLLVM_TARGETS_TO_BUILD:STRING=host -DLLVM_INCLUDE_TOOLS:STRING=bootstrap-only ../source $ make clang # build clang only for host $ cd .. $ export CC=$(realpath bootstrap/bin)/clang $ export CXX=$(realpath bootstrap/bin)/clang++ $ mkdir final $ cd final $ cmake -G 'Unix Makefiles' ../source $ make all check-all llvm-svn: 184924
-
Rafael Espindola authored
I will remove the V1 version as soon as I change clang in the next commit. llvm-svn: 184914
-
- Jun 25, 2013
-
-
Rafael Espindola authored
llvm-svn: 184853
-
Rafael Espindola authored
llvm-svn: 184826
-
- Jun 22, 2013
-
-
Rafael Espindola authored
Removes the last use of PathV1.h in llvm-ar. llvm-svn: 184630
-
Sean Silva authored
Although in reality the symbol table in ELF resides in a section, the standard requires that there be no more than one SHT_SYMTAB. To enforce this constraint, it is cleaner to group all the symbols under a top-level `Symbols` key on the object file. llvm-svn: 184627
-
Sean Silva authored
The full ELFYAML::Section isn't needed. llvm-svn: 184626
-
Sean Silva authored
Just add them to the vector of section headers like the rest of the section headers. llvm-svn: 184624
-
Sean Silva authored
llvm-svn: 184623
-
Sean Silva authored
The improperly aligned section content in the output was causing buildbot failures. This should fix them. Incidentally, this results in a simpler and more robust API for ContiguousBlobAccumulator. llvm-svn: 184621
-
Rafael Espindola authored
llvm-svn: 184599
-
- Jun 21, 2013
-
-
Sean Silva authored
Previously we unconditionally enforced that section references in symbols in the YAML had a name that was a section name present in the object, and linked the references to that section. Now, permit empty section names (already the default, if the `Section` key is not provided) to indicate SHN_UNDEF. llvm-svn: 184513
-
Sean Silva authored
llvm-svn: 184508
-
Sean Silva authored
Instead, just have 3 sub-lists, one for each of {STB_LOCAL,STB_GLOBAL,STB_WEAK}. This allows us to be a lot more explicit w.r.t. the symbol ordering in the object file, because if we allowed explicitly setting the STB_* `Binding` key for the symbol, then we might have ended up having to shuffle STB_LOCAL symbols to the front of the list, which is likely to cause confusion and potential for error. Also, this new approach is simpler ;) llvm-svn: 184506
-
Rafael Espindola authored
llvm-svn: 184486
-
Rafael Espindola authored
llvm-svn: 184484
-
- Jun 20, 2013
-
-
Sean Silva authored
After this patch, the ELF file produced by `yaml2obj-elf-symbol-basic.yaml`, when linked and executed on x86_64 (under SysV ABI, obviously; I tested on Linux), produces a working executable that goes into an infinite loop! llvm-svn: 184469
-
Sean Silva authored
llvm-svn: 184468
-
Sean Silva authored
One of the key things that the YAML format abstracts over is the use of section numbers for referencing sections. Instead, textual section names are used, which yaml2obj then translates into appropriate section numbers. (Technically ELF doesn't care about section names (only section numbers), but since this is a testing tool, readability counts). This simplifies using section names as symbolic references in various parts of the code. An upcoming commit will use this to allow symbols to reference sections. llvm-svn: 184467
-
Rafael Espindola authored
With this we can remove the last use of PathV1 from llvm-ar.cpp. llvm-svn: 184464
-
Rafael Espindola authored
llvm-svn: 184460
-
Meador Inge authored
This commit completely removes what is left of the simplify-libcalls pass. All of the functionality has now been migrated to the instcombine and functionattrs passes. The following C API functions are now NOPs: 1. LLVMAddSimplifyLibCallsPass 2. LLVMPassManagerBuilderSetDisableSimplifyLibCalls llvm-svn: 184459
-
Sean Silva authored
llvm-svn: 184457
-
Sean Silva authored
llvm-svn: 184456
-
Rafael Espindola authored
llvm-svn: 184455
-
Rafael Espindola authored
Use that in llvm-ar.cpp to replace a use of sys::PathWithStatus. llvm-svn: 184450
-
Rafael Espindola authored
Matches gnu ar behavior. llvm-svn: 184448
-
Rafael Espindola authored
Original message: Don't include directory names in archives. This matches the behavior of both gnu and os x versions of ar. llvm-svn: 184423
-
Rafael Espindola authored
This reverts commit 184420. Investigating the bot failures. llvm-svn: 184421
-
Rafael Espindola authored
This matches the behavior of both gnu and os x versions of ar. llvm-svn: 184420
-
Rafael Espindola authored
llvm-svn: 184418
-
Rafael Espindola authored
llvm-svn: 184416
-
Rafael Espindola authored
llvm-svn: 184415
-
Rafael Espindola authored
llvm-svn: 184413
-
Rafael Espindola authored
llvm-svn: 184412
-
- Jun 19, 2013
-
-
David Blaikie authored
This is a basic implementation - we still don't have any support (that I know of) for dumping DWARF expressions in a meaningful way, so the location information itself is just printed as a sequence of bytes as we do elsewhere. llvm-svn: 184361
-
Rafael Espindola authored
llvm-svn: 184359
-
Rafael Espindola authored
llvm-svn: 184355
-
Rafael Espindola authored
llvm-svn: 184354
-
Rafael Espindola authored
Store the individual fields we need instead of a sys::FileStatus. llvm-svn: 184353
-