summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix the DataLayout string produced by clang for NaCl.Rafael Espindola2013-12-182-5/+16
| | | | | | Reviewed by Derek Schuff. llvm-svn: 197628
* Implemented delayed processing of 'unavailable' checking, just like with ↵Ted Kremenek2013-12-1843-217/+300
| | | | | | | | | | | | | | | | | | | | | | | | | 'deprecated'. Fixes <rdar://problem/15584219> and <rdar://problem/12241361>. This change looks large, but all it does is reuse and consolidate the delayed diagnostic logic for deprecation warnings with unavailability warnings. By doing so, it showed various inconsistencies between the diagnostics, which were close, but not consistent. It also revealed some missing "note:"'s in the deprecated diagnostics that were showing up in the unavailable diagnostics, etc. This change also changes the wording of the core deprecation diagnostics. Instead of saying "function has been explicitly marked deprecated" we now saw "'X' has been been explicitly marked deprecated". It turns out providing a bit more context is useful, and often we got the actual term wrong or it was not very precise (e.g., "function" instead of "destructor"). By just saying the name of the thing that is deprecated/deleted/unavailable we define this issue away. This diagnostic can likely be further wordsmithed to be shorter. llvm-svn: 197627
* Use getAsCXXRecordDecl to shorten some gets and castsReid Kleckner2013-12-181-10/+5
| | | | llvm-svn: 197626
* ObjectiveC. support "section" attribute on propertiesFariborz Jahanian2013-12-184-4/+24
| | | | | | and methods. rdar://15450637 llvm-svn: 197625
* Revert "Add -mcpu=z10 to SystemZ tests."Andrew Trick2013-12-184-4/+4
| | | | | | | | | | This reverts commit r197466. The MachineCSE fix that required the -mcpu flag has been disabled until more work can be done to fix downstream issues. Adding -mcpu wasn't the right workaround anyway. llvm-svn: 197624
* Require the type of a by-copy capture to be complete before creating its field.Douglas Gregor2013-12-183-0/+20
| | | | | | | | | | | | The problem here is more serious than the fix implies. Adding a field to a class updates the triviality bits for the class (among other things). Failing to require a complete type before adding the field meant that these updates don't happen in the well-formed case where the capture is an uninstantiated class template specialization, leading the lambda itself to be treated as having a trivial copy constructor when it shouldn't. Fixes <rdar://problem/15560464>. llvm-svn: 197623
* Code reorganization in PlatformDarwin for how the libdispatchJason Molenda2013-12-182-74/+123
| | | | | | | | offsets structure is read & saved in the platform object -- soon we'll be getting more than the queue name offset out of this structure so we'll need to reuse the information in other methods. llvm-svn: 197620
* Add a test for mipsel-nacl too.Rafael Espindola2013-12-181-0/+4
| | | | llvm-svn: 197617
* Enhance OpenMP parser tests from r197553 / r197598Alp Toker2013-12-182-4/+8
| | | | | | | | | Move some of the verifier directives away from the end of the pragma line. This ensures that the diagnostics relate to the trailing token being tested and not the verifier comments which are themselves part of the token stream. llvm-svn: 197616
* [aarch32] fix bug 18268: Incorrect condition of vselWeiming Zhao2013-12-182-5/+5
| | | | | | | | Given vsel_cc, op1, op2, since vsel has no LE/LT, to generate vsel for such selection, it needs to inverse cc and swap op1 and op2. To inverse cc, both L/G and E bits should be flipped. llvm-svn: 197615
* Debug info: Implement (rvalue) reference qualifiers for C++11 non-staticAdrian Prantl2013-12-186-19/+170
| | | | | | | | member functions. Paired commit with CFE. rdar://problem/15356637 llvm-svn: 197613
* Debug info: Implement (rvalue) reference qualifiers for C++11 non-staticAdrian Prantl2013-12-182-2/+35
| | | | | | | | member functions. Paired commit with LLVM. rdar://problem/15356637 llvm-svn: 197612
* Pull in a couple of new constants from the upcoming DWARF 5 standard.Adrian Prantl2013-12-182-1/+49
| | | | llvm-svn: 197611
* formattingAdrian Prantl2013-12-181-2/+2
| | | | llvm-svn: 197610
* Allow Objective-C pointer conversions following an explicit user conversion.Douglas Gregor2013-12-183-6/+29
| | | | | | Finishes the work started in r194224, and fixes <rdar://problem/15494681>. llvm-svn: 197609
* clang-format-diff.py: fix -regex/-iregex matchingAlp Toker2013-12-181-4/+4
| | | | | | | | | | While debating the finer points of file extension matching, we somehow missed the bigger problem that the current code will match anything starting with the default or user-specified pattern (e.g. lit.site.cfg.in). Fix this by doing what find(1) does, implicitly wrapping the pattern with ^$. llvm-svn: 197608
* Correctly handle the degenerated triple "thumb".Rafael Espindola2013-12-182-6/+10
| | | | | | | Fixes a crash in llc where some parts think the target is thumb and others think it is ARM. llvm-svn: 197607
* llvm-cov: Print coverage summary to STDOUT.Yuchen Wu2013-12-185-6/+76
| | | | | | | | | | | | File summaries will now be optionally outputted which will give line, branching and call coverage info. Unfortunately, clang's current instrumentation does not give enough information to deduce function calls, something that gcc is able to do. Thus, no calls are always outputted to be consistent with gcov output. Also updated tests. llvm-svn: 197606
* Objective-C. After providing a fix-it for aFariborz Jahanian2013-12-188-46/+36
| | | | | | | | cstring, converted to NSString, produce the matching AST for it. This also required some refactoring of the previous code. // rdar://14106083 llvm-svn: 197605
* Make setABIAPCS and setABIAAPCS easier to reason about.Rafael Espindola2013-12-181-25/+39
| | | | | | | These functions now always set the same variables in the same order and they don't overlap with thep constructor. llvm-svn: 197604
* Split setABI in two helpers. No functionality change.Rafael Espindola2013-12-181-44/+50
| | | | llvm-svn: 197603
* Revert r197600 while I sort out why it's failing on Windows.Owen Anderson2013-12-185-79/+2
| | | | llvm-svn: 197602
* [DFSan] New custom wrappersLorenzo Martignoni2013-12-183-24/+209
| | | | | | | | | | | | | | | | | | Added the following custom wrappers: strstr strrchr memchr nanosleep socketpair Tweaked a couple of existing wrappers: if a wrapper returns a pointers derived from an input pointer, then return the label of the input pointer Sorted tests invocation Differential Revision: D2354 llvm-svn: 197601
* Add a unit test for loading an object file via a file descriptor. Patch by ↵Owen Anderson2013-12-185-2/+79
| | | | | | Pete Cooper. llvm-svn: 197600
* Fix OpenMP recovery with trailing tokens following the pragmaAlp Toker2013-12-183-0/+20
| | | | | | | | The recovery was failing due to a missing case in SkipUntil(). Also add back tests from r197553 that were reverted in the previous commit. llvm-svn: 197598
* Revert "[OPENMP] Fix for parsing OpenMP directives with extra braces, ↵Alp Toker2013-12-186-86/+41
| | | | | | | | | | | brackets and parens" These parser changes were redundant. The same or better recovery can be achieved with a one-line fix to SkipUntil() due to land in the next commit. This reverts commit r197553. llvm-svn: 197597
* Adding a win32-targeted test into Tooling/multi-jobs.cpp, to make sure it ↵Artyom Skrobov2013-12-181-0/+1
| | | | | | | | doesn't get broken again (prompted by NAKAMURA Takumi) llvm-svn: 197596
* llvm-cov: s/(.*)Executed/\1Exec/Yuchen Wu2013-12-181-3/+3
| | | | llvm-svn: 197595
* llvm-cov: Added -c option for branch counts.Yuchen Wu2013-12-186-17/+219
| | | | | | | | | This will cause llvm-cov to output branch counts instead of branch probabilities. -b must be enabled. Also updated tests. llvm-svn: 197594
* check-clang: Fixup r197576, to replace CMAKE_CFG_INTDIR on clang_tools_dir.NAKAMURA Takumi2013-12-181-0/+1
| | | | llvm-svn: 197593
* OpenCL: Do not force 64 bit floats for (embedded) targets with only 32bit ↵Pekka Jaaskelainen2013-12-181-2/+8
| | | | | | floats. llvm-svn: 197592
* Add a first cut at a Registers_arm class, to be used for 32bit arm EHABI ↵Nico Weber2013-12-184-0/+458
| | | | | | unwinding. llvm-svn: 197591
* [CMake] Don't put every project's tblgen executable in the LLVM bin directory.Jordan Rose2013-12-181-2/+0
| | | | | | | | | This changes Clang standalone builds so that clang-tblgen lives in clang/build/bin instead of llvm/build/bin, and so that with the Xcode generator it's in clang/build/bin/Debug instead of llvm/build/bin/Debug/Debug/. Yes, really. llvm-svn: 197590
* [mips][msa] Update format of RUN lines for every MSA MC test.Matheus Almeida2013-12-1816-31/+61
| | | | | | | | | 1. The arch directive now appears before the cpu directive 2. Long run lines were split across multiple lines No functional changes. llvm-svn: 197588
* [arm] Rename Tag_VFP_arch to Tag_FP_arch.Logan Chien2013-12-182-10/+10
| | | | | | | | According to "Addenda to ABI for ARM architecture", Tag_FP_arch is the new name for the equivalent Tag_VFP_arch. This commit renames Tag_VFP_arch to Tag_FP_arch. llvm-svn: 197587
* ObjectiveC. Fixes the sentence in a diagnostic.Fariborz Jahanian2013-12-182-2/+2
| | | | | | // rdar://15397430 llvm-svn: 197586
* clang-format parts of the file.Rafael Espindola2013-12-181-18/+9
| | | | | | | I am about to send a patch for review touching these and clang-formating first makes the patch much easier to read. llvm-svn: 197585
* Implement the MSABI and SysVABI calling conventions for Objective-C method ↵Aaron Ballman2013-12-182-4/+13
| | | | | | declarations. This appears to be an omission from r189644. llvm-svn: 197584
* Revert r197380, "llvm-config: Print SYSTEM_LIBS with --libs, instead of ↵NAKAMURA Takumi2013-12-181-8/+2
| | | | | | | | --ldflags." I will introduce another flag, like --system-libs, later. llvm-svn: 197583
* Adding some comments about AST node requirements for attributes which create ↵Aaron Ballman2013-12-181-0/+5
| | | | | | AST nodes but never actually make use of them. No functional changes. llvm-svn: 197582
* [CMake] Prune LLVM_TOOLS_BINARY_DIR in LLVMConfig.cmake, since it always ↵NAKAMURA Takumi2013-12-181-2/+0
| | | | | | points build directory. llvm-svn: 197581
* Whitespace cleanup.Rafael Espindola2013-12-181-2/+2
| | | | llvm-svn: 197580
* Workaround QEMU GDB server issue. Ed Maste2013-12-181-0/+8
| | | | | | | | | During testing I observed QEMU send "$T02thread:01;#04" upon connection, before any command from LLDB. This change from gclayton accepts (and discards) a packet immediately after sending the initial ack, to flush the GDB remote pipeline. llvm-svn: 197579
* Remove OpenCL-specific type keywords and specifiersAlp Toker2013-12-1811-161/+22
| | | | | | | | | | | | | | | This commit kills off custom type specifier and keyword handling of OpenCL C data types. Although the OpenCL spec describes them as keywords, we can handle them more elegantly as predefined types. This should provide better error correction and code completion as well as simplifying the implementation. The primary intention is however to simplify the C/C++ parser and save some packed bits on AST structures that had been extended in r170432 just for OpenCL. llvm-svn: 197578
* Add -f64:32:64 to the darwin ppc32 DataLayout.Rafael Espindola2013-12-182-5/+3
| | | | | | A f64 inside a struct can be 32 bit aligned on darwin. llvm-svn: 197577
* check-clang: Introduce clang_tools_dir in lit.site.cfg, for clang separated ↵NAKAMURA Takumi2013-12-184-1/+8
| | | | | | from llvm. llvm-svn: 197576
* clang/test/CMakeLists.txt: Prune CLANG_SOURCE_DIR and CLANG_BINARY_DIR. They ↵NAKAMURA Takumi2013-12-181-3/+0
| | | | | | are set at top. llvm-svn: 197575
* Fix f64 and f128 for ppc-darwin.Rafael Espindola2013-12-181-1/+3
| | | | | | | | | | This patch adds -f64:32:64 to 32 bit ppc darwin since a f64 inside a structure are only 32 bit aligned. The patch also drop -f128:64:128 from all ppc darwin, since f128 is 128 bit aligned. llvm-svn: 197574
* [Sanitizers] Fix CL compile-time warning in the symbolizerTimur Iskhodzhanov2013-12-181-2/+2
| | | | llvm-svn: 197573
* One ppc32-darwin, a i64 inside a structure can have 32 bit alignment.Rafael Espindola2013-12-182-3/+4
| | | | | | | | Thanks for Iain Sandoe for testing this with the original gcc. Clang was already getting this right. llvm-svn: 197572
OpenPOWER on IntegriCloud