summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Do a sweep over move ctors and remove those that are identical to the default.Benjamin Kramer2016-10-2047-652/+30
| | | | | | | | | | 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
* Reapply "Add Chrono.h - std::chrono support header"Pavel Labath2016-10-2010-124/+212
| | | | | | | | | 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
* [Clang-tidy]: Fix modernize-avoid-bind erroneous scope resolution.Haojian Wu2016-10-202-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* [cmake] Avoid warnings in feature tests. NFC.Michael Kruse2016-10-201-5/+5
| | | | | | | | | | 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
* [DAGCombiner] Add general constant vector support to (srl (shl x, c), c) -> ↵Simon Pilgrim2016-10-202-22/+10
| | | | | | | | (and x, cst2) We already supported scalar constant / splatted constant vector - now accepts any (non opaque) constant scalar / vector llvm-svn: 284717
* Compact SectionPiece.Rafael Espindola2016-10-204-37/+46
| | | | | | | 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
* Wdocumentation fixSimon Pilgrim2016-10-201-1/+0
| | | | llvm-svn: 284715
* Fix spelling mistake in comment.Simon Pilgrim2016-10-201-1/+1
| | | | llvm-svn: 284714
* Fix MSVC bool -> uint64_t promotion warningSimon Pilgrim2016-10-201-1/+1
| | | | llvm-svn: 284713
* [ELF] Add REQUIRES: arm to test to fix buildbot without ARM backend.Peter Smith2016-10-201-0/+1
| | | | llvm-svn: 284711
* [ELF] Allow relative exceptions relocations in shared librariesPeter Smith2016-10-205-12/+60
| | | | | | | | | | | | | 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
* Don't include PHDRs if linker script doesn't want themEugene Leviant2016-10-202-0/+36
| | | | | | | | | | | | | 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
* [ELF] - Partial support of --gdb-index command line option (Part 1).George Rimar2016-10-2012-0/+262
| | | | | | | | | | | | | | | 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
* [Go bindings] Update for r284678 API changes.Benjamin Kramer2016-10-203-21/+18
| | | | | | Alignment moved from createBasicType to createAutoVariable. llvm-svn: 284707
* Fix ARM/AArch64 Step-Over watchpoint issue remove provision for duplicate ↵Omair Javaid2016-10-205-105/+190
| | | | | | | | | | | 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
* [ELF] - Applied clang format. NFC.George Rimar2016-10-2015-83/+69
| | | | llvm-svn: 284705
* [SystemZ] Post-RA scheduler implementationJonas Paulsson2016-10-2019-37/+3342
| | | | | | | | | | | | | | | | 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
* [ELF] - Testcase checking that we do not crash on invalid sh_info in ↵George Rimar2016-10-202-0/+3
| | | | | | | | | | SHT_GROUP sections. NFC. Fix was landed as r284702 "[Object/ELF] - Check index argument in getSymbol()." Patch contains LLD testcase only. llvm-svn: 284703
* [Object/ELF] - Check index argument in getSymbol().George Rimar2016-10-201-1/+4
| | | | | | | | | | | | | | | | | | | | | | 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
* Work around MSVC rejects-valid. Apparenty (some versions of) MSVC will checkRichard Smith2016-10-201-9/+8
| | | | | | | that a member is default-initializable even if it's initialized by a default member initializer. llvm-svn: 284701
* Add a helper function to define symbols.Rui Ueyama2016-10-204-32/+23
| | | | | | | Also replace std::copy with memcpy because in other places we are using memcpy. llvm-svn: 284700
* Rename variables so that they are more in line with rest of the code.Rui Ueyama2016-10-203-25/+20
| | | | llvm-svn: 284699
* Update document.Rui Ueyama2016-10-201-3/+3
| | | | llvm-svn: 284698
* Format. NFC.Rui Ueyama2016-10-202-18/+8
| | | | llvm-svn: 284697
* Remove Config::Binary.Rui Ueyama2016-10-203-3/+5
| | | | | | This member is used only by LinkerDriver, so move it to LinkerDriver. llvm-svn: 284696
* Remove an optional parameter from LinkerDriver::addFile to simplify.Rui Ueyama2016-10-202-6/+8
| | | | llvm-svn: 284695
* Split LinkerDriver::createFiles. NFC.Rui Ueyama2016-10-202-10/+16
| | | | llvm-svn: 284694
* Fix error message for unknown -format argument.Rui Ueyama2016-10-202-4/+7
| | | | | | | | | | | -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
* Simplify. NFC.Rui Ueyama2016-10-201-10/+14
| | | | llvm-svn: 284692
* Attempt to workaround XPASS for aligned allocation testsEric Fiselier2016-10-204-4/+8
| | | | llvm-svn: 284691
* Replace uses of LLVM_FUNCTION_NAME with __func__, this was macro was removed ↵Erik Pilkington2016-10-203-4/+4
| | | | | | from llvm/Support in r284681 llvm-svn: 284690
* Update isl to isl-0.17.1-236-ga9c6cc7Tobias Grosser2016-10-207-3/+43
| | | | | | This includes isl_id_to_str, which is used in Michael's upcoming DeLICM patch. llvm-svn: 284689
* X86: Allow expressions to appear as u8imm operands.Peter Collingbourne2016-10-204-1/+16
| | | | llvm-svn: 284688
* Remove std:: from std::size_t.Rui Ueyama2016-10-204-6/+6
| | | | llvm-svn: 284687
* X86: Deduplicate some lowering code. NFCI.Peter Collingbourne2016-10-202-34/+18
| | | | llvm-svn: 284686
* Refactor and simplify Sema::FindCompositePointerType. No functionality ↵Richard Smith2016-10-201-126/+123
| | | | | | change intended. llvm-svn: 284685
* PR26276: Fix detection of non-cast-expressions as operands of fold-expressions.Richard Smith2016-10-204-1/+29
| | | | llvm-svn: 284684
* Upgrade debug-info-vla test: we do not pass default alignment nowVictor Leschuk2016-10-201-1/+0
| | | | llvm-svn: 284683
* DebugInfo: remove broken bitcode upgrade testVictor Leschuk2016-10-202-43/+0
| | | | llvm-svn: 284682
* Use __func__ directly now that all supported compilers support itReid Kleckner2016-10-207-20/+11
| | | | | | Remove the portability macro now that it is unused. llvm-svn: 284681
* Fix narrowing conversion error in 32-bit MSVC buildsReid Kleckner2016-10-202-2/+2
| | | | | | | | 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
* DebugInfo: pass alignment value only if it was forcedVictor Leschuk2016-10-2024-94/+124
| | | | | | | | | | 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
* DebugInfo: preparation to implement DW_AT_alignmentVictor Leschuk2016-10-2022-188/+329
| | | | | | | | | | | | - 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
* [WebAssembly] Update extending load test for new i1 behaviorDerek Schuff2016-10-201-12/+12
| | | | | | | r284611 changed the behavior of the DAG legalizer for sign-extending i1 values. Update the wasm extending load test to match. llvm-svn: 284677
* Allow linker-script-defined entry symbols.Rui Ueyama2016-10-205-14/+22
| | | | | | | | 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
* Fix build failure.Rui Ueyama2016-10-201-1/+1
| | | | llvm-svn: 284675
* Added a decorator for the macOS version and switched over testcases that ↵Sean Callanan2016-10-207-13/+17
| | | | | | used platform.release llvm-svn: 284674
* Fix crash on noreturn conversion in unprototyped function type. Thanks to KeithRichard Smith2016-10-202-2/+13
| | | | | | Walker for spotting the bug. llvm-svn: 284673
* Remove LLVM_NOEXCEPT and replace it with noexceptReid Kleckner2016-10-1919-33/+26
| | | | | | | Now that we have dropped MSVC 2013, all supported compilers support noexcept and we can drop this portability macro. llvm-svn: 284672
* Use noexcept directly now that all compilers support itReid Kleckner2016-10-191-2/+2
| | | | llvm-svn: 284671
OpenPOWER on IntegriCloud