| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 208839
|
| |
|
|
|
|
| |
change.
llvm-svn: 208832
|
| |
|
|
| |
llvm-svn: 208723
|
| |
|
|
|
|
| |
Code depends on the assembler and linker to fix things up...
llvm-svn: 208715
|
| |
|
|
|
|
| |
This lets us delete the MCAsmStreamer implementation. No functionality change.
llvm-svn: 208570
|
| |
|
|
|
|
| |
No functionality change.
llvm-svn: 208569
|
| |
|
|
|
|
| |
No functionality change.
llvm-svn: 208567
|
| |
|
|
|
|
|
| |
Now that the asm streamer doesn't use it, the MCStreamer doesn't need to know
about it.
llvm-svn: 208562
|
| |
|
|
| |
llvm-svn: 208561
|
| |
|
|
| |
llvm-svn: 208559
|
| |
|
|
| |
llvm-svn: 208558
|
| |
|
|
| |
llvm-svn: 208557
|
| |
|
|
| |
llvm-svn: 208555
|
| |
|
|
| |
llvm-svn: 208554
|
| |
|
|
| |
llvm-svn: 208553
|
| |
|
|
| |
llvm-svn: 208551
|
| |
|
|
|
|
| |
We were already always passing true, this just removes the option.
llvm-svn: 208205
|
| |
|
|
|
|
| |
encodings as x86. Use this exception model for NetBSD.
llvm-svn: 208166
|
| |
|
|
| |
llvm-svn: 208132
|
| |
|
|
| |
llvm-svn: 208130
|
| |
|
|
|
|
|
|
| |
This removes arguments passed everywhere and allows the use of
standard iteration over lists.
Should be no functional change.
llvm-svn: 208127
|
| |
|
|
|
|
|
|
| |
fall back to the normal path without a cpu. While doing this fix
llc to just exit when we don't have a module to process instead of
asserting.
llvm-svn: 208102
|
| |
|
|
|
|
| |
this reapplies 208012 and 208002.
llvm-svn: 208037
|
| |
|
|
|
|
| |
used via dragonegg for now.
llvm-svn: 208016
|
| |
|
|
|
|
| |
and inline it into its caller.
llvm-svn: 208012
|
| |
|
|
|
|
| |
a 0 as a default answer.
llvm-svn: 208009
|
| |
|
|
| |
llvm-svn: 208002
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The fix itself is fairly simple: move getAccessVariant to MCValue so that we
replace the old weak expression evaluation with the far more general
EvaluateAsRelocatable.
This then requires that EvaluateAsRelocatable stop when it finds a non
trivial reference kind. And that in turn requires the ELF writer to look
harder for weak references.
Last but not least, this found a case where we were being bug by bug
compatible with gas and accepting an invalid input. I reported pr19647
to track it.
llvm-svn: 207920
|
| |
|
|
|
|
|
|
|
| |
.file records are supposed to have a section identifier of 65534
(IMAGE_SCN_DEBUG) rather than 0. This is spelt out clearly within the PE/COFF
specification. Fix this minor oversight with the implementation for support for
.file records.
llvm-svn: 207851
|
| |
|
|
|
|
|
|
|
|
| |
This was initialized by llvm-mc (calling setDwarfVersion) but other
clients (such as clang, llc, etc) aren't necessarily initializing this
so we were getting garbage DWARF version values in the output.
Initialize it to a reasonable default (the same default used in llvm-mc,
though this is higher than it was (2) previously).
llvm-svn: 207788
|
| |
|
|
|
|
|
|
|
| |
This matches gas' behaviour on COFF.
I think that this yak is now sufficiently shaved for aliases with offset
to work.
llvm-svn: 207786
|
| |
|
|
|
|
|
|
|
| |
This fixes pr19147.
There are a few more related issues to fix, but the testcase in the bug now
passes.
llvm-svn: 207763
|
| |
|
|
|
|
| |
I will use it there in a second.
llvm-svn: 207761
|
| |
|
|
| |
llvm-svn: 207759
|
| |
|
|
|
|
|
| |
Record the DWARF version in MCContext, and use it when
emitting the dwarf version into the debug info.
llvm-svn: 207739
|
| |
|
|
|
|
|
| |
This makes the coff writer compute the correct symbol value for the test in
pr19147. The section is still incorrect, that will be fixed in a followup patch.
llvm-svn: 207728
|
| |
|
|
| |
llvm-svn: 207723
|
| |
|
|
| |
llvm-svn: 207721
|
| |
|
|
|
|
|
| |
This simplifies ELFObjectWriter::SymbolValue a bit more. This new version
will also be used in the COFF writer to fix pr19147.
llvm-svn: 207711
|
| |
|
|
|
|
| |
It now defers all offset computation to getSymbolOffset.
llvm-svn: 207674
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We already do this for shstrtab, so might as well do it for strtab. This
extracts the string table building code into a separate class. The idea
is to use it for other object formats too.
I mostly wanted to do this for the general principle, but it does save a
little bit on object file size. I tried this on a clang bootstrap and
saved 0.54% on the sum of object file sizes (1.14 MB out of 212 MB for
a release build).
Differential Revision: http://reviews.llvm.org/D3533
llvm-svn: 207670
|
| |
|
|
|
|
| |
Thanks to Saleem Abdulrasool for noticing it.
llvm-svn: 207643
|
| |
|
|
|
|
|
| |
This is a partial port of r204816 (cpirker "Elf support for MC-JIT
runtime dynamic linker") from AArch64 to ARM64.
llvm-svn: 207625
|
| |
|
|
|
|
|
| |
We can now use EvaluateAsValue to make it non recursive and remove some code
duplication.
llvm-svn: 207604
|
| |
|
|
| |
llvm-svn: 207596
|
| |
|
|
|
|
| |
necessary.
llvm-svn: 207593
|
| |
|
|
| |
llvm-svn: 207526
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This patch centralizes the handling of the thumb bit around
MCStreamer::isThumbFunc and makes isThumbFunc handle aliases.
This fixes a corner case, but the main advantage is having just one
way to check if a MCSymbol is thumb or not. This should still be
refactored to be ARM only, but at least now it is just one predicate
that has to be refactored instead of 3 (isThumbFunc,
ELF_Other_ThumbFunc, and SF_ThumbFunc).
llvm-svn: 207522
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
When evaluating an assembly expression for a relocation, we want to
stop at MCSymbols that are in the symbol table, even if they are variables.
This is needed since the semantics may require that the relocation use them.
That is not the case when computing the value of a symbol in the symbol table.
There are no relocations in this case and we have to keep going until we hit
a section or find out that the expression doesn't have an assembly time
value.
llvm-svn: 207445
|
| |
|
|
|
|
|
| |
No functionality change. This removes the last use of AliasedSymbol in
ELFObjectWriter.cpp.
llvm-svn: 207424
|