- 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
-
- Jun 15, 2013
-
-
Rafael Espindola authored
Archive files (.a) can have a symbol table indicating which object files in them define which symbols. The purpose of this symbol table is to speed up linking by allowing the linker the read only the .o files it is actually going to use instead of having to parse every object's symbol table. LLVM's archive library currently supports a LLVM specific format for such table. It is hard to see any value in that now that llvm-ld is gone: * System linkers don't use it: GNU ar uses the same plugin as the linker to create archive files with a regular index. The OS X ar creates no symbol table for IL files, I assume the linker just parses all IL files. * It doesn't interact well with archives having both IL and native objects. * We probably don't want to be responsible for yet another archive format variant. This patch then: * Removes support for creating and reading such index from lib/Archive. * Remove llvm-ranlib, since there is nothing left for it to do. We should in the future add support for regular indexes to llvm-ar for both native and IL objects. When we do that, llvm-ranlib should be reimplemented as a symlink to llvm-ar, as it is equivalent to "ar s". llvm-svn: 184019
-
- Apr 05, 2013
-
-
Rafael Espindola authored
llvm-svn: 178904
-
Rafael Espindola authored
llvm-svn: 178835
-
- Mar 17, 2013
-
-
Rafael Espindola authored
Patch by Stephen Checkoway. llvm-svn: 177233
-
- Mar 01, 2013
-
-
Daniel Malea authored
- if you have LLDB checked out in $llvm/tools, CMake will build it now! - LLDB is known to build on Linux with libstdc++ and GCC 4.6/4.7 or Clang 3.3 - to run lldb tests, do "make check-lldb" after a build llvm-svn: 176307
-
- Nov 21, 2012
-
-
Andrew Kaylor authored
llvm-svn: 168459
-
- Nov 12, 2012
-
-
Alexander Potapenko authored
This is the second and last (2/2) part of a change that moves llvm-symbolizer to llvm/tools/, which will allow to build it with both cmake and configure+make. llvm-svn: 167723
-
- Nov 01, 2012
-
-
Jim Grosbach authored
Nothing fancy, just a simple demonstration parser. llvm-svn: 167181
-
- Apr 26, 2012
-
-
Michael J. Spencer authored
While making lld build under the tools directory I decided to refactor how this works. There is now a macro, add_llvm_external_project, which takes the name of the expected subdirectory. This sets up two CMake options. * LLVM_EXTERNAL_${NAME}_SOURCE_DIR This is the path to the source. It defaults to ${CMAKE_CURRENT_SOURCE_DIR}/${name}. * LLVM_EXTERNAL_${NAME}_BUILD Enable and disable building the tool as part of LLVM. I chose LLVM_EXTERNAL_${NAME} as a prefix so they all show up together in the GUI. llvm-svn: 155654
-
- Apr 19, 2012
-
-
Michael J. Spencer authored
llvm-ld is no longer useful and causes confusion and so it is being removed. * Does not work very well on Windows because it must call a gcc like driver to assemble and link. * Has lots of hard coded paths which are wrong on many systems. * Does not understand most of ld's options. * Can be partially replaced by llvm-link | opt | {llc | as, llc -filetype=obj} | ld, or fully replaced by Clang. I know of no production use of llvm-ld, and hacking use should be replaced by Clang's driver. llvm-svn: 155147
-
- Mar 01, 2012
-
-
David Meyer authored
* Add begin_dynamic_table() / end_dynamic_table() private interface to ELFObjectFile. * Add begin_libraries_needed() / end_libraries_needed() interface to ObjectFile, for grabbing the list of needed libraries for a shared object or dynamic executable. * Implement this new interface completely for ELF, leave stubs for COFF and MachO. * Add 'llvm-readobj' tool for dumping ObjectFile information. llvm-svn: 151785
-
- Feb 26, 2012
-
-
Nadav Rotem authored
Add a random .LL file generator to stress-test different llvm components. llvm-svn: 151479
-
- Dec 07, 2011
-
-
Duncan Sands authored
llvm-svn: 146071
-
- Dec 01, 2011
-
-
Daniel Dunbar authored
- Another reapply of r144300, with hopefully one last fix. llvm-svn: 145623
-
Duncan Sands authored
Original commit message: llvm-config: Replace with C++ version (was llvm-config-2). - Reapply of r144300, with lots of fixes/migration easement in between. llvm-svn: 145582
-
- Nov 29, 2011
-
-
Daniel Dunbar authored
- Reapply of r144300, with lots of fixes/migration easement in between. llvm-svn: 145449
-
Daniel Dunbar authored
- This fixes some layering violations and matches how we handle the llvm-c lib, for example. llvm-svn: 145338
-
- Nov 10, 2011
-
-
Daniel Dunbar authored
which didn't appear ready for prime time. llvm-svn: 144309
-
Daniel Dunbar authored
llvm-svn: 144300
-
- Nov 03, 2011
-
-
Daniel Dunbar authored
know at build time. llvm-svn: 143649
-
Daniel Dunbar authored
for now). - Mostly complete except for the data that needs to come from the build system or the dependencies. - Has some small improvements from current llvm-config: o Uses TargetRegistry directly to get some information. o Designed to work correctly when used from a CMake build tree (relatively untested currently) (although pcc fixed this recently for old llvm-config). llvm-svn: 143616
-
- Oct 16, 2011
-
-
NAKAMURA Takumi authored
llvm-svn: 142136
-
NAKAMURA Takumi authored
CMake: Introduce LLVM_CLANG_SOURCE_DIR, "tools/clang" by default. Clang will not be built if LLVM_CLANG_SOURCE_DIR="" or ${LLVM_CLANG_SOURCE_DIR}/CMakeLists.txt is not found. llvm-svn: 142103
-
- Sep 28, 2011
-
-
Michael J. Spencer authored
llvm-svn: 140722
-
- Sep 20, 2011
-
-
Eric Christopher authored
llvm-svn: 140109
-
- Sep 13, 2011
-
-
Benjamin Kramer authored
This introduces a new library to LLVM: libDebugInfo. It will provide debug information parsing to LLVM. Much of the design and some of the code is taken from the LLDB project. It also contains an llvm-dwarfdump tool that can dump the abbrevs and DIEs from an object file. It can be used to write tests for DWARF input and output easily. llvm-svn: 139627
-
- Jul 15, 2011
-
-
Douglas Gregor authored
available when Clang is found within the LLVM tree. If enabled (the default), Clang will be built as part of LLVM. If disabled, Clang will be skipped... and can be built by configuring a separate object directory just for Clang. This helps break up the monolithic LLVM+Clang project that many Clang developers use, improving build/load times. llvm-svn: 135218
-
- Apr 28, 2011
-
-
Chandler Carruth authored
llvm-svn: 130393
-
Chandler Carruth authored
llvm-svn: 130391
-
- Mar 18, 2011
-
-
Jim Grosbach authored
Add a bone-simple utility to load a MachO object into memory, look for a function (main) in it, and run that function directly. This will be used as a test and development platform for MC-JIT work regarding symbol resolution, dynamic lookup, etc.. Code by Daniel Dunbar. llvm-svn: 127885
-
- Mar 13, 2011
-
-
Oscar Fuentes authored
llvm-svn: 127562
-
- Mar 12, 2011
-
-
Oscar Fuentes authored
llvm-svn: 127549
-
- Mar 11, 2011
-
-
Oscar Fuentes authored
other systems pending. PR9456. llvm-svn: 127466
-
- Jan 20, 2011
-
-
Michael J. Spencer authored
llvm-svn: 123898
-
- Nov 27, 2010
-
-
Daniel Dunbar authored
llvm-svn: 120191
-
- Oct 30, 2010
-
-
Tobias Grosser authored
Update the cmake and autoconf build system to compile polly as a shared library if it is checked out into tools/polly. In case polly is not checked out, nothing changes. This models the way clang can be added to llvm if checked out to tools/clang. Also rebuild configure. Patch contributed by ether. llvm-svn: 117755
-
- Sep 14, 2010
-
-
Michael J. Spencer authored
This reverts commit r113632 Conflicts: cmake/modules/AddLLVM.cmake llvm-svn: 113819
-
- Sep 10, 2010
-
-
Michael J. Spencer authored
llvm-svn: 113632
-
- Aug 24, 2010
-
-
John McCall authored
- teach DifferenceEngine to unify successors of calls and invokes in certain circumstances - basic blocks actually don't have their own numbering; did that change? - add llvm-diff to the Makefile and CMake build systems llvm-svn: 111909
-