summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* EricQWF's code coverage work showed that none of the libc++ tests were ↵Marshall Clow2014-11-114-7/+81
| | | | | | exercising some code in vector<bool>. Add more tests in an attempt to get better coverage llvm-svn: 221644
* Added a testcase that checks that fairly complicatedSean Callanan2014-11-113-0/+77
| | | | | | | | | | | | structures are parsed safely by the Objective-C runtime. Also made some modifications to the way we parse structs in the runtime to avoid mis-parsing @ followed by the name of the next field. <rdar://problem/18887634> llvm-svn: 221643
* [ProcessWindows] Implement breakpoint stop / resume on Windows.Zachary Turner2014-11-1110-11/+173
| | | | | | | | | | | | | | This patch implements basic support for stopping at breakpoints and resuming later. While a breakpoint is stopped at, LLDB will cease to process events in the debug loop, effectively suspending the process, and then resume later when ProcessWindows::DoResume is called. As a side effect, this also correctly handles the loader breakpoint (i.e. the initial stop) so that LLDB goes through the correct state sequence during the initial process launch. llvm-svn: 221642
* [libclang] When initializing an ObjC object via the "[[ClassName alloc] ↵Argyrios Kyrtzidis2014-11-102-2/+24
| | | | | | | | | | | | init*]" pattern, report the 'init*' invocation as non-dynamic via clang_Cursor_isDynamicCall. Of course it is dynamic at runtime, but for purposes of indexing we can treat as an invocation to ClassName's init*. Addresses rdar://18916871. llvm-svn: 221641
* Cleaned up the StringLexer a little bit. It turnsSean Callanan2014-11-102-27/+14
| | | | | | | | | | | out we only want to roll back text that was in the buffer to begin with, so it's not necessary to provide a pushback stack. I'm going to use this slightly cleaner API to perform lookahead for the Objective-C runtime type parser. llvm-svn: 221640
* [yaml2obj] Support AArch64 relocations.Chad Rosier2014-11-102-0/+133
| | | | | | | Patch by Daniel Stewart <stewartd@codeaurora.org>! Phabricator Revision: http://reviews.llvm.org/D6192 llvm-svn: 221639
* configure.ac lives in autoconf/, not autotools/Rafael Espindola2014-11-101-1/+1
| | | | | | Patch by Palmer Dabbelt! llvm-svn: 221638
* [ProcessWindows] Notify process plugin when the launch succeeds.Zachary Turner2014-11-109-53/+89
| | | | llvm-svn: 221637
* Fix some compiler warnings, one of which was a legit bug.Zachary Turner2014-11-102-7/+5
| | | | | | | | | | | | MSVC warns that not all control paths return a value when a switch doesn't have a default case handler. Changed explicit value checks to a default check. Also, it caught a case where bitwise AND was being used instead of logical AND. I'm not sure what this fixes, but presumably it is not covered by any kind of test case. llvm-svn: 221636
* Propagate SanitizerKind into CodeGenFunction::EmitCheck() call.Alexey Samsonov2014-11-106-48/+85
| | | | | | | | | | | | | | | | Make sure CodeGenFunction::EmitCheck() knows which sanitizer it emits check for. Make CheckRecoverableKind enum an implementation detail and move it away from header. Currently CheckRecoverableKind is determined by the type of sanitizer ("unreachable" and "return" are unrecoverable, "vptr" is always-recoverable, all the rest are recoverable). This will change in future if we allow to specify which sanitizers are recoverable, and which are not by -fsanitize-recover= flag. No functionality change. llvm-svn: 221635
* Validate user headers even if -fmodules-validate-once-per-build-sessionBen Langmuir2014-11-102-10/+23
| | | | | | | | is enabled. Unlike system headers, we want to be more careful about modifications to user headers, because it's still easy to edit a header while you're building. llvm-svn: 221634
* Fix comments to match the current reality.Greg Clayton2014-11-101-2/+2
| | | | llvm-svn: 221633
* Fix selectors not being objc-uniquified in the expression parser after a ↵Greg Clayton2014-11-101-1/+1
| | | | | | recent renaming in clang (clang change for revision 221451). This broke all objective C expressions in LLDB. llvm-svn: 221632
* AArch64: set all processor features from -arch if nothing else presentTim Northover2014-11-102-0/+9
| | | | | | | | | | Darwin's "-arch arm64" option implies full Cyclone CPU, for both architectural and tuning purposes. So if neither of the explicit options have been given, forward that on to the proper invocation. rdar://problem/18906227 llvm-svn: 221631
* Improve diagnostics if _Noreturn is placed after a function declarator. ↵Richard Smith2014-11-104-3/+34
| | | | | | (This sometimes happens when a macro is used that expands to either the GNU noreturn attribute or _Noreturn.) llvm-svn: 221630
* Reverting r221626 due to a too-strict test.Michael Kuperstein2014-11-102-17/+0
| | | | llvm-svn: 221629
* [AArch64][FastISel] Fix kill flags for integer extends.Juergen Ributzka2014-11-102-0/+28
| | | | | | | | | In the case we optimize an integer extend away and replace it directly with the source register, we also have to clear all kill flags at all its uses. This is necessary, because the orignal IR instruction might be trivially dead, but we replaced it with a nop at MI level. llvm-svn: 221628
* [SwitchLowering] Fix the "fixPhis" function.Juergen Ributzka2014-11-102-8/+37
| | | | | | | | | | | | | | | Switch statements may have more than one incoming edge into the same BB if they all have the same value. When the switch statement is converted these incoming edges are now coming from multiple BBs. Updating all incoming values to be from a single BB is incorrect and would generate invalid LLVM IR. The fix is to only update the first occurrence of an incoming value. Switch lowering will perform subsequent calls to this helper function for each incoming edge with a new basic block - updating all edges in the process. This fixes rdar://problem/18916275. llvm-svn: 221627
* [X86] Fix pattern match for 32-to-64-bit zext in the presence of AssertSextMichael Kuperstein2014-11-102-0/+17
| | | | | | | | | This fixes an issue with matching trunc -> assertsext -> zext on x86-64, which would not zero the high 32-bits. See PR20494 for details. Differential Revision: http://reviews.llvm.org/D6128 llvm-svn: 221626
* Remove change to set SDKROOT when building compiler-rt on Darwin.Bob Wilson2014-11-101-17/+0
| | | | | | | | This reverts the runtime library portion of r194168. As of r221621, the libclang_rt libraries for Darwin build with explicit SDK options so there is no need to set SDKROOT here. llvm-svn: 221625
* Fix a problem reported by Ed Maste where the test harness was failing to ↵Enrico Granata2014-11-101-1/+1
| | | | | | call bound methods as cleanup hooks llvm-svn: 221624
* Update fold-expression mangling to match cxx-abi-dev discussion.Richard Smith2014-11-102-12/+10
| | | | llvm-svn: 221623
* Clean up indentation after previous change.Bob Wilson2014-11-101-17/+17
| | | | llvm-svn: 221622
* Build Darwin libclang_rt libraries against real SDKs.Bob Wilson2014-11-1015-527/+52
| | | | | | | | | | | The minimal fake SDK was very useful in allowing us to build for all Darwin platforms without needing access to the real SDKs, but it did not support building any of the sanitizer runtimes. It's important to fix that. As a consequence, if you don't have the iOS SDKs installed, we will now skip building the iOS-specific libclang_rt libraries. rdar://problem/18825276 llvm-svn: 221621
* Copy externally_initialized in GlobalVariable::copyAttributesFrom.Rafael Espindola2014-11-102-0/+8
| | | | | | Patch by Kevin Frei! llvm-svn: 221620
* [NVPTX] Add an NVPTX-specific TargetTransformInfoJingyue Wu2014-11-105-12/+115
| | | | | | | | | | | | | | | | | | | | Summary: It currently only implements hasBranchDivergence, and will be extended in later diffs. Split from D6188. Test Plan: make check-all Reviewers: jholewinski Reviewed By: jholewinski Subscribers: llvm-commits, meheff, eliben, jholewinski Differential Revision: http://reviews.llvm.org/D6195 llvm-svn: 221619
* Misc style fixes. NFC.Rafael Espindola2014-11-1011-353/+275
| | | | | | | | | | | | | This fixes a few cases of: * Wrong variable name style. * Lines longer than 80 columns. * Repeated names in comments. * clang-format of the above. This make the next patch a lot easier to read. llvm-svn: 221615
* Only build iOS runtime libraries when the iOS SDKs are available.Bob Wilson2014-11-101-6/+17
| | | | | | | | | This was already set up for the iOS simulator ASan dylib simulator, and this change extends that to the other iOS runtime libraries. This is in preparation for building all those iOS libraries against the real SDKs instead of the fake SDKs in compiler-rt. llvm-svn: 221614
* Fix extra semicolon warning. NFC.Vasileios Kalintiris2014-11-101-1/+1
| | | | llvm-svn: 221613
* [mips][microMIPS] Fix issue with delay slot filler and microMIPSZoran Jovanovic2014-11-102-11/+37
| | | | | | Differential Revision: http://reviews.llvm.org/D6193 llvm-svn: 221612
* Fix new noreturn test on !darwin platformsEd Maste2014-11-101-2/+3
| | | | | | | | r221575 introduced a NoreturnUnwind test that did not skip the dsym test on non-darwin platforms, and had the @dwarf_test case as an exact copy of the dsym case (including the test name, test_with_dsym). llvm-svn: 221611
* Do not build a separate x86_64h Haswell slice for the iOS simulator.Bob Wilson2014-11-101-7/+4
| | | | | | | | r199996 added new x86_64h slices for all the Darwin compiler_rt libraries that had an x86_64 slice, but that is overkill for the iOS Simulator platform where the x86_64h slice is never used. llvm-svn: 221610
* clang-format: Fix pointer formatting.Daniel Jasper2014-11-102-0/+4
| | | | | | | | | Before: void f(Bar* a = nullptr, Bar * b); After: void f(Bar* a = nullptr, Bar* b); llvm-svn: 221609
* Fix variable names and comment style. NFC.Rafael Espindola2014-11-101-16/+14
| | | | llvm-svn: 221608
* clang-format: [Java] Never treat @interface as annotation.Nico Weber2014-11-103-1/+21
| | | | | | | | | '@' followed by any keyword can't be an annotation, but @interface is currently the only combination of '@' and a keyword that's allowed, so limit it to this case. `@interface Foo` without a leading `public` was misformatted prior to this patch. llvm-svn: 221607
* clang-format: Document that --assume-filename affects the language.Nico Weber2014-11-101-1/+1
| | | | llvm-svn: 221606
* Remove unused diagnostic.Benjamin Kramer2014-11-101-2/+0
| | | | llvm-svn: 221605
* [mips] Fix sret arguments for N32/N64 which were accidentally broken in r221534.Daniel Sanders2014-11-102-0/+95
| | | | llvm-svn: 221604
* [Mips] Replace the redundant condition by assert callSimon Atanasyan2014-11-101-3/+3
| | | | | | No functional changes. llvm-svn: 221603
* [Mips] Do not read addends for relocations which do not use themSimon Atanasyan2014-11-102-11/+8
| | | | | | No functional changes. llvm-svn: 221602
* Update status pages for C++1zMarshall Clow2014-11-103-5/+127
| | | | llvm-svn: 221601
* [Tooling] Restore current directory after processing each file.Alexander Kornienko2014-11-101-2/+17
| | | | | | | | | | | | | | | | | | Summary: If we actually change directory before processing a file, we need to restore it afterwards. This was broken in r216620. Added a comment for the changes in r216620. Reviewers: klimek Reviewed By: klimek Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D6162 llvm-svn: 221600
* Enable running Ubsan tests on FreeBSDViktor Kutuzov2014-11-101-3/+2
| | | | | | Differential Revision: http://reviews.llvm.org/D6089 llvm-svn: 221599
* Mark test using python as REQUIRES: python27.Manuel Klimek2014-11-101-0/+1
| | | | llvm-svn: 221598
* [Ubsan] Fix the missing_return.cpp test to pass on FreeBSDViktor Kutuzov2014-11-101-0/+1
| | | | | | Differential Revision: http://reviews.llvm.org/D6088 llvm-svn: 221597
* [Ubsan] Fix the cast-overflow.cpp test to build on FreeBSDViktor Kutuzov2014-11-101-0/+5
| | | | | | Differential Revision: http://reviews.llvm.org/D6087 llvm-svn: 221596
* [Sanitizers] Enable stack traces on FreeBSDViktor Kutuzov2014-11-104-5/+34
| | | | | | Differential Revision: http://reviews.llvm.org/D6086 llvm-svn: 221595
* [ELF] add missing test for max-page-sizeShankar Easwaran2014-11-101-0/+104
| | | | llvm-svn: 221594
* LLGS Android target support (r221570) missed adding some files: ↵Shawn Best2014-11-104-0/+341
| | | | | | http://reviews.llvm.org/D6166 llvm-svn: 221593
* [CMake] llvm-c-test: Use libLLVM.so if it is available.NAKAMURA Takumi2014-11-101-0/+9
| | | | llvm-svn: 221592
OpenPOWER on IntegriCloud