- Sep 27, 2013
-
-
Rui Ueyama authored
llvm-svn: 191469
-
Fariborz Jahanian authored
on class methods, as it makes no sense. // rdar://15069200 llvm-svn: 191468
-
Michael J. Spencer authored
llvm-svn: 191467
-
Michael J. Spencer authored
llvm-svn: 191466
-
- Sep 26, 2013
-
-
Fariborz Jahanian authored
inner pointer for annotation to objc_returns_inner_pointer purposes. // rdar://15044991 llvm-svn: 191465
-
Adrian Prantl authored
ownership qualifiers. Fixes rdar://problem/14990656. llvm-svn: 191463
-
Faisal Vali authored
llvm-svn: 191462
-
Jack Carter authored
Patch by Matheus Almeida llvm-svn: 191461
-
Jack Carter authored
[mips][msa] Updates encoding of 3RF instructions to match the latest revision of the MSA spec (1.06). This does not affect any of the existing output. Patch by Matheus Almeida llvm-svn: 191460
-
Kaelyn Uhrain authored
llvm-svn: 191459
-
Bob Wilson authored
The previous change caused the driver to translate -Wa,-L to the -msave-temp-labels option for cc1as, but cc1as did not accept that option. This patch follows the same approach used for similar options (-relax-all, -noexecstack) in the previous patch. llvm-svn: 191458
-
Matt Kopec authored
Fix the thread jump test case for 32-bit inferiors. A jump was going back to a function call using a source line number. However, the parameters being passed to the function were setup before the instruction we jumped to. In other words, the source line was associated with assembly after the function parameters had been setup for the function to be called. llvm-svn: 191457
-
Carlo Kok authored
llvm-svn: 191455
-
Ben Langmuir authored
llvm-svn: 191454
-
Faisal Vali authored
Specifically, the following features are not included in this commit: - any sort of capturing within generic lambdas - generic lambdas within template functions and nested within other generic lambdas - conversion operator for captureless lambdas - ensuring all visitors are generic lambda aware (Although I have gotten some useful feedback on my patches of the above and will be incorporating that as I submit those patches for commit) As an example of what compiles through this commit: template <class F1, class F2> struct overload : F1, F2 { using F1::operator(); using F2::operator(); overload(F1 f1, F2 f2) : F1(f1), F2(f2) { } }; auto Recursive = [](auto Self, auto h, auto ... rest) { return 1 + Self(Self, rest...); }; auto Base = [](auto Self, auto h) { return 1; }; overload<decltype(Base), decltype(Recursive)> O(Base, Recursive); int num_params = O(O, 5, 3, "abc", 3.14, 'a'); Please see attached tests for more examples. This patch has been reviewed by Doug and Richard. Minor changes (non-functionality affecting) have been made since both of them formally looked at it, but the changes involve removal of supernumerary return type deduction changes (since they are now redundant, with richard having committed a recent patch to address return type deduction for C++11 lambdas using C++14 semantics). Some implementation notes: - Add a new Declarator context => LambdaExprParameterContext to clang::Declarator to allow the use of 'auto' in declaring generic lambda parameters - Add various helpers to CXXRecordDecl to facilitate identifying and querying a closure class - LambdaScopeInfo (which maintains the current lambda's Sema state) was augmented to house the current depth of the template being parsed (id est the Parser calls Sema::RecordParsingTemplateParameterDepth) so that SemaType.cpp::ConvertDeclSpecToType may use it to immediately generate a template-parameter-type when 'auto' is parsed in a generic lambda parameter context. (i.e we do NOT use AutoType deduced to a template parameter type - Richard seemed ok with this approach). We encode that this template type was generated from an auto by simply adding $auto to the name which can be used for better diagnostics if needed. - SemaLambda.h was added to hold some common lambda utility functions (this file is likely to grow ...) - Teach Sema::ActOnStartOfFunctionDef to check whether it is being called to instantiate a generic lambda's call operator, and if so, push an appropriately prepared LambdaScopeInfo object on the stack. - various tests were added - but much more will be needed. There is obviously more work to be done, and both Richard (weakly) and Doug (strongly) have requested that LambdaExpr be removed form the CXXRecordDecl LambdaDefinitionaData in a future patch which is forthcoming. A greatful thanks to all reviewers including Eli Friedman, James Dennett, and especially the two gracious wizards (Richard Smith and Doug Gregor) who spent hours providing feedback (in person in Chicago and on the mailing lists). And yet I am certain that I have allowed unidentified bugs to creep in; bugs, that I will do my best to slay, once identified! Thanks! llvm-svn: 191453
-
Ben Langmuir authored
llvm-svn: 191452
-
Edwin Vane authored
Build files for unit tests hadn't been updated yet. llvm-svn: 191451
-
Kaelyn Uhrain authored
I noticed the wrong text was being replaced with the correction while working on expanding the "namespace-aware" typo correction to include classes. llvm-svn: 191450
-
Kaelyn Uhrain authored
Unlike with namespaces, searching inside of classes requires also checking the access to correction candidates (i.e. don't suggest a correction to a private class member for a correction occurring outside that class and its methods or friends). Included is a small (one line) fix for a bug, that was uncovered while cleaning up the unit tests, where the decls from a TypoCorrection candidate were preserved in new TypoCorrection candidates that are derived (copied) from the old TypoCorrection--notably when creating a new candidate by changing the NestedNameSpecifier associated with the base idenitifer. llvm-svn: 191449
-
Edwin Vane authored
The LoopConvert transform makes use of data structures it builds up over the course of transforming a TU. Until now, these data structures weren't being cleared out before the next TU was being processed. Fixes PR17253. Differential Revision: http://llvm-reviews.chandlerc.com/D175 llvm-svn: 191448
-
Carlo Kok authored
llvm-svn: 191447
-
Carlo Kok authored
On windows a socket and file descriptor aren't the same kind of handle, pass the type to Close so it uses the right api to close it. llvm-svn: 191446
-
Dmitry Vyukov authored
llvm-svn: 191445
-
Richard Smith authored
llvm-svn: 191444
-
Richard Smith authored
llvm-svn: 191443
-
Reid Kleckner authored
Patch by Jeff Muizelaar, with added test case. llvm-svn: 191442
-
Weiming Zhao authored
t2PLDi12, t2PLDi8, t2PLDs was omitted in Thumb2InstrInfo. This patch fixes it. llvm-svn: 191441
-
Bill Schmidt authored
When generating code for shared libraries, even local calls may be intercepted, so we need a nop after the call for the linker to fix up the TOC. Test case adapted from the one provided in PR17354. llvm-svn: 191440
-
Jordan Rose authored
-fvar-tracking (which IIUC is on by default in GCC) will still generate an error. llvm-svn: 191439
-
Andrea Di Biagio authored
llvm-svn: 191438
-
Rafael Espindola authored
They are already handled by the generic fno_bultin_, which also avoids unused warnings. llvm-svn: 191437
-
Benjamin Kramer authored
llvm-svn: 191436
-
Rafael Espindola authored
These options don't exist in gcc and clang was not handling them. llvm-svn: 191435
-
Rafael Espindola authored
This matches gcc's behavior. llvm-svn: 191434
-
Rafael Espindola authored
llvm-svn: 191433
-
Venkatraman Govindaraju authored
llvm-svn: 191432
-
Venkatraman Govindaraju authored
llvm-svn: 191431
-
Ashok Thirumurthi authored
- Removes the block in UnwindLLDB::AddOneMoreFrame that tests for a bad stack setup, since it is neither correct (tests the FP GPR), complete (doesn't consider multi-frame cycles), nor reachable (the construction of RegisterContextLLDB will fail in the case where either of the two (why just two?) previous frames have the same canonical frame address as the frame that we propose adding to the stack). llvm-svn: 191430
-
Rafael Espindola authored
It is possible that we should say some of these are unsupported, but this is not any worse than the old behavior of ignoring all unknown -f options. llvm-svn: 191429
-
Amara Emerson authored
Patch by Artyom Skrobov. llvm-svn: 191428
-