- Oct 11, 2017
-
-
Rui Ueyama authored
Usually, a function that does symbol lookup takes symbol name as its first argument. Also, if a function takes a source location hint, it is usually the last parameter. So the previous parameter order was counter-intuitive. llvm-svn: 315433
-
Rui Ueyama authored
Because of r314495, DefinedCommon symbols cannot reach to getSymbolValue function. When they reach the fucntion, they have already been converted to DefinedRegular symbols. llvm-svn: 315432
-
Rui Ueyama authored
llvm-svn: 315431
-
Rui Ueyama authored
"process" was not a good name because everything can be named it. llvm-svn: 315430
-
Davide Italiano authored
This fixes PR34908. Patch by Alex Crichton! Differential Revision: https://reviews.llvm.org/D38765 llvm-svn: 315429
-
NAKAMURA Takumi authored
llvm-svn: 315428
-
Rui Ueyama authored
llvm-svn: 315427
-
Rui Ueyama authored
llvm-svn: 315426
-
Rui Ueyama authored
We should generally avoid static local variables. llvm-svn: 315425
-
Rui Ueyama authored
llvm-svn: 315424
-
Rui Ueyama authored
llvm-svn: 315423
-
Rui Ueyama authored
Even though they are called sequentially, they are separate operations, so it is better to split it. llvm-svn: 315422
-
Rui Ueyama authored
llvm-svn: 315421
-
Rui Ueyama authored
llvm-svn: 315420
-
Rui Ueyama authored
llvm-svn: 315419
-
Rui Ueyama authored
We used CurAddressState to capture a dynamic context just like we use lambdas to capture static contexts. So, CurAddressState is used everywhere in LinkerScript.cpp. It is worth a shorter name. llvm-svn: 315418
-
Jake Ehrlich authored
Revert "[llvm-objcopy] Add support for --strip-sections to remove all section headers leaving only program headers and loadable segment data" This reverts commit rL315412 llvm-svn: 315417
-
Rui Ueyama authored
llvm-svn: 315416
-
Rui Ueyama authored
llvm-svn: 315415
-
Rui Ueyama authored
llvm-svn: 315414
-
Peter Collingbourne authored
Should fix mingw bot. llvm-svn: 315413
-
Jake Ehrlich authored
[llvm-objcopy] Add support for --strip-sections to remove all section headers leaving only program headers and loadable segment data elf utils implements a particularly extreme form of stripping that I'd like to support. eu-strip has an option called "strip-sections" that removes all section headers and leaves only program headers and the segment data. I have implemented this option partly as a test but mainly because in Fuchsia we would like to use this option to minimize the size of our executables. The other strip options that are on my list include --strip-all and --strip-debug. This is a preliminary implementation that I'd like to start using in Fuchsia builds if possible. This change implements such a stripping option for llvm-objcopy Differential Revision: https://reviews.llvm.org/D38335 llvm-svn: 315412
-
Lang Hames authored
llvm-svn: 315411
-
Lang Hames authored
MCObjectStreamer owns its MCAsmBackend -- this fixes the types to reflect that, and allows us to remove another instance of MCObjectStreamer's weird "holding ownership via someone else's reference" trick. llvm-svn: 315410
-
Rui Ueyama authored
"Commands" was ambiguous because in the linker script, everything is a command. We used to handle only SECTIONS commands, and at the time, it might make sense to call them the commands, but it is no longer the case. We handle not only SECTIONS but also MEMORY, PHDRS, VERSION, etc., and they are all commands. llvm-svn: 315409
-
Richard Smith authored
We want to check whether the using (shadow) declaration itself is visible, not whether its target is visible. llvm-svn: 315408
-
Kostya Serebryany authored
[libFuzzer] experimental flag to tweak the corpus distribution. Seems to improve the situation dramatically on the png benchmark and make things worse on a number of micro-puzzles. Needs more A/B testing llvm-svn: 315407
-
Reid Kleckner authored
Of course, casting an unsigned value too large for 'int' is UB. So, write out the ternary. LLVM folds it to ADD anyway. Fixes the warning from r303693 a different way. Thanks to Erich Keane for pointing this out! llvm-svn: 315406
-
Rui Ueyama authored
HasSections is true if there is at least one SECTIONS linker script command, and it is not directly related to whether we have section objects or not. So I think the new name is better. llvm-svn: 315405
-
Rui Ueyama authored
llvm-svn: 315404
-
Rui Ueyama authored
ScriptConfiguration was a class to contain parsed results of linker scripts. LinkerScript is a class to interpret it. That ditinction was needed because we haven't instantiated LinkerScript early (because, IIRC, LinkerScript class was a ELFT template function). So, when we parse linker scripts, we couldn't directly store the result to a LinkerScript instance. Now, that limitation is gone. We instantiate LinkerScript at the very beginning of our main function. We can directly store parse results to a LinkerScript instance. llvm-svn: 315403
-
Richard Smith authored
llvm-svn: 315402
-
Rui Ueyama authored
Because addRegular's functionality is tightly coupled with addSymbol, and the former is called only once, it makes sense to merge the two functions. This patch also adds comments. llvm-svn: 315401
-
Peter Collingbourne authored
Fixes PR34306. This is because it usually results in more compact code, and because there are also known code generation bugs when using the PIC model (see bug). Based on a patch by Carlo Kok. Differential Revision: https://reviews.llvm.org/D38769 llvm-svn: 315400
-
Craig Topper authored
[X86] Remove temporary std::string creation from shuffle comment printing. We can just write directly to the raw_ostream. llvm-svn: 315399
-
Alex Lorenz authored
Credit to OSS-Fuzz for discovery: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3137#c5 rdar://34923985 llvm-svn: 315398
-
Richard Smith authored
llvm-svn: 315397
-
Evgeniy Stepanov authored
The tests have been enabled by accident in r315389. llvm-svn: 315396
-
Craig Topper authored
llvm-svn: 315395
-
Rui Ueyama authored
I think three ctors are too many for this simple class. llvm-svn: 315394
-