| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
|
|
| |
All of these existed because MSVC 2013 was unable to synthesize default
move ctors. We recently dropped support for it so all that error-prone
boilerplate can go.
No functionality change intended.
llvm-svn: 284721
|
| |
|
|
|
|
|
|
|
| |
This is a resubmission of r284590. The mingw build should be fixed now. The
problem was we were matching time_t with _localtime_64s, which was incorrect on
_USE_32BIT_TIME_T systems. Instead I use localtime_s, which should always
evaluate to the correct function.
llvm-svn: 284720
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hello, i would like to suggest a fix for one of the checks in clang-tidy and i should hope this one is the correct mailing list.
The check is modernize-avoid-bind.
Consider the following:
void bar(int x, int y);
namespace N {
void bar(int x, int y);
}
void foo(){
auto Test = std::bind(N::bar,1,1);
}
clang-tidy’s modernize-avoid-bind check suggests writing:
void foo(){
auto Test =[] {return bar(1,1);};
}
instead of:
void foo(){
auto Test = [] {return N::bar(1,1);};
}
So clang-tidy has proposed an incorrect Fix.
Patch by IdrissRio!
Reviewers: alexfh, hokein, aaron.ballman
Subscriber: cfe-commits
llvm-svn: 284719
|
| |
|
|
|
|
|
|
|
|
| |
Apply the __attribute__((unused)) before the function to unambiguously apply to
the function declaration.
Add more casts-to-void to mark return values unused as intended.
Contributed-by: Andy Gibbs <andyg1001@hotmail.co.uk>
llvm-svn: 284718
|
| |
|
|
|
|
|
|
| |
(and x, cst2)
We already supported scalar constant / splatted constant vector - now accepts any (non opaque) constant scalar / vector
llvm-svn: 284717
|
| |
|
|
|
|
|
| |
We allocate a lot of these when linking debug info. This speeds up the
link of debug programs by 1% to 2%.
llvm-svn: 284716
|
| |
|
|
| |
llvm-svn: 284715
|
| |
|
|
| |
llvm-svn: 284714
|
| |
|
|
| |
llvm-svn: 284713
|
| |
|
|
| |
llvm-svn: 284711
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The R_ARM_PREL31 and R_ARM_NONE relocations should not be faulted in
shared libraries. In the case of R_ARM_NONE, we have moved the TLS
relaxation hint instruction to R_TLSDESC_CALL so that R_HINT can be used
without side-effects. In the case of R_ARM_PREL31 we permit it to be used
against PLT entries as the personality routines are imported when used in
shared libraries.
Differential Revision: https://reviews.llvm.org/D25721
llvm-svn: 284710
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This script below shouldn't include file and program headers
to PT_LOAD segment, because it doesn't have PHDRS and FILEHDR
attributes:
PHDRS { all PT_LOAD; }
SECTIONS { /* list of sections here */ }
Differential revision: https://reviews.llvm.org/D25774
llvm-svn: 284709
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In this patch partial gdb_index section is created.
For costructing the .gdb_index section 6 steps should be performed (details are in
SplitDebugInfo.cpp file header), this patch do first 3:
Creates proper section header.
Fills list of compilation units.
Types CU list area is not supposed to be supported, so it is ignored and therefore
can be treated as implemented either.
Differential revision: https://reviews.llvm.org/D24706
llvm-svn: 284708
|
| |
|
|
|
|
| |
Alignment moved from createBasicType to createAutoVariable.
llvm-svn: 284707
|
| |
|
|
|
|
|
|
|
|
|
| |
watchpoints
This patch fixes ARM/AArch64 watchpoint bug which was taking inferior out of control while stepping over watchpoints.
Also adds a test case that tests above problem.
Differential revision: https://reviews.llvm.org/D25057
llvm-svn: 284706
|
| |
|
|
| |
llvm-svn: 284705
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Post-RA sched strategy and scheduling instruction annotations for z196, zEC12
and z13.
This scheduler optimizes decoder grouping and balances processor resources
(including side steering the FPd unit instructions).
The SystemZHazardRecognizer keeps track of the scheduling state, which can
be dumped with -debug-only=misched.
Reviers: Ulrich Weigand, Andrew Trick.
https://reviews.llvm.org/D17260
llvm-svn: 284704
|
| |
|
|
|
|
|
|
|
|
| |
SHT_GROUP sections. NFC.
Fix was landed as r284702 "[Object/ELF] - Check index argument in getSymbol()."
Patch contains LLD testcase only.
llvm-svn: 284703
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Without this check LLD crashes when SHT_GROUP section has invalid symbol index
because of next code:
template <class ELFT>
StringRef elf::ObjectFile<ELFT>::getShtGroupSignature(const Elf_Shdr &Sec) {
..
const Elf_Sym *Sym = Obj.getSymbol(Symtab, Sec.sh_info);
..
}
If sh_info is too large, &Symbols[Index] just asserts.
No testcases provided because llvm-objdump/llvm-readelf does
not use getSymbol() function.
I`ll commit testcase for LLD separatelly.
Differential revision: https://reviews.llvm.org/D25516
llvm-svn: 284702
|
| |
|
|
|
|
|
| |
that a member is default-initializable even if it's initialized by a default
member initializer.
llvm-svn: 284701
|
| |
|
|
|
|
|
| |
Also replace std::copy with memcpy because in other places we are
using memcpy.
llvm-svn: 284700
|
| |
|
|
| |
llvm-svn: 284699
|
| |
|
|
| |
llvm-svn: 284698
|
| |
|
|
| |
llvm-svn: 284697
|
| |
|
|
|
|
| |
This member is used only by LinkerDriver, so move it to LinkerDriver.
llvm-svn: 284696
|
| |
|
|
| |
llvm-svn: 284695
|
| |
|
|
| |
llvm-svn: 284694
|
| |
|
|
|
|
|
|
|
|
|
| |
-format=<foo>, -format <foo> and -b <foo> are all the same.
Previous code was intended to produce an error message with the
same spelling as given from the command line, but it actually
always printed out this string: "unknown -format= value:".
This is probably more confusing than "unknown -format value:".
So I changed the message.
llvm-svn: 284693
|
| |
|
|
| |
llvm-svn: 284692
|
| |
|
|
| |
llvm-svn: 284691
|
| |
|
|
|
|
| |
from llvm/Support in r284681
llvm-svn: 284690
|
| |
|
|
|
|
| |
This includes isl_id_to_str, which is used in Michael's upcoming DeLICM patch.
llvm-svn: 284689
|
| |
|
|
| |
llvm-svn: 284688
|
| |
|
|
| |
llvm-svn: 284687
|
| |
|
|
| |
llvm-svn: 284686
|
| |
|
|
|
|
| |
change intended.
llvm-svn: 284685
|
| |
|
|
| |
llvm-svn: 284684
|
| |
|
|
| |
llvm-svn: 284683
|
| |
|
|
| |
llvm-svn: 284682
|
| |
|
|
|
|
| |
Remove the portability macro now that it is unused.
llvm-svn: 284681
|
| |
|
|
|
|
|
|
| |
Use size_t instead of ELFT::uint for the string table offset. If the
linker is built 32-bit, it can't write an output file larger than 2GB.
Other code in this area uses size_t as well.
llvm-svn: 284680
|
| |
|
|
|
|
|
|
|
|
| |
Preparation to implement DW_AT_alignment support:
- We pass non-zero align value to DIBuilder only when alignment was forced
- Modify tests to match this change
Differential Revision: https://reviews.llvm.org/D24426
llvm-svn: 284679
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Add alignment attribute to DIVariable family
- Modify bitcode format to match new DIVariable representation
- Update tests to match these changes (also add bitcode upgrade test)
- Expect that frontend passes non-zero align value only when it is not default
(was forcibly aligned by alignas()/_Alignas()/__atribute__(aligned())
Differential Revision: https://reviews.llvm.org/D25073
llvm-svn: 284678
|
| |
|
|
|
|
|
| |
r284611 changed the behavior of the DAG legalizer for sign-extending i1
values. Update the wasm extending load test to match.
llvm-svn: 284677
|
| |
|
|
|
|
|
|
| |
Previously, we were checking the existence of an entry symbol
too early. It was done before the linker script processor creates
symbols defined in scripts. Fixes bug 30743.
llvm-svn: 284676
|
| |
|
|
| |
llvm-svn: 284675
|
| |
|
|
|
|
| |
used platform.release
llvm-svn: 284674
|
| |
|
|
|
|
| |
Walker for spotting the bug.
llvm-svn: 284673
|
| |
|
|
|
|
|
| |
Now that we have dropped MSVC 2013, all supported compilers support
noexcept and we can drop this portability macro.
llvm-svn: 284672
|
| |
|
|
| |
llvm-svn: 284671
|