| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
| |
llvm-svn: 185137
|
| |
|
|
|
|
|
|
|
|
|
| |
No functionality change.
It should suffice to check the type of a debug info metadata, instead of
calling Verify. For cases where we know the type of a DI metadata, use
assert.
Also update testing cases to make them conform to the format of DI classes.
llvm-svn: 185135
|
| |
|
|
|
|
| |
This reverts commit r185020
llvm-svn: 185032
|
| |
|
|
|
|
|
|
| |
No functionality change.
It should suffice to check the type of a debug info metadata, instead of
calling Verify.
llvm-svn: 185020
|
| |
|
|
|
|
| |
Patch by 罗勇刚(Yonggang Luo).
llvm-svn: 184971
|
| |
|
|
|
|
| |
llvm itself is now PathV1 clean.
llvm-svn: 184947
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
I will remove the V1 version as soon as I change clang in the next commit.
llvm-svn: 184914
|
| |
|
|
| |
llvm-svn: 184853
|
| |
|
|
| |
llvm-svn: 184826
|
| |
|
|
|
|
| |
Removes the last use of PathV1.h in llvm-ar.
llvm-svn: 184630
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
The full ELFYAML::Section isn't needed.
llvm-svn: 184626
|
| |
|
|
|
|
|
| |
Just add them to the vector of section headers like the rest of the
section headers.
llvm-svn: 184624
|
| |
|
|
| |
llvm-svn: 184623
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 184599
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 184508
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 184486
|
| |
|
|
| |
llvm-svn: 184484
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 184468
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
With this we can remove the last use of PathV1 from llvm-ar.cpp.
llvm-svn: 184464
|
| |
|
|
| |
llvm-svn: 184460
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 184457
|
| |
|
|
| |
llvm-svn: 184456
|
| |
|
|
| |
llvm-svn: 184455
|
| |
|
|
|
|
| |
Use that in llvm-ar.cpp to replace a use of sys::PathWithStatus.
llvm-svn: 184450
|
| |
|
|
|
|
| |
Matches gnu ar behavior.
llvm-svn: 184448
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
This reverts commit 184420.
Investigating the bot failures.
llvm-svn: 184421
|
| |
|
|
|
|
| |
This matches the behavior of both gnu and os x versions of ar.
llvm-svn: 184420
|
| |
|
|
| |
llvm-svn: 184418
|
| |
|
|
| |
llvm-svn: 184416
|
| |
|
|
| |
llvm-svn: 184415
|
| |
|
|
| |
llvm-svn: 184413
|
| |
|
|
| |
llvm-svn: 184412
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 184359
|
| |
|
|
| |
llvm-svn: 184355
|
| |
|
|
| |
llvm-svn: 184354
|
| |
|
|
|
|
| |
Store the individual fields we need instead of a sys::FileStatus.
llvm-svn: 184353
|
| |
|
|
|
|
|
| |
This matches GNU ar behavior. Also remove the now unused getFileStatus method.
Not sure how to add a test, it would have to run ls -l or something like that.
llvm-svn: 184337
|
| |
|
|
| |
llvm-svn: 184328
|
| |
|
|
| |
llvm-svn: 184320
|
| |
|
|
| |
llvm-svn: 184318
|