- Feb 18, 2012
-
-
Benjamin Kramer authored
llvm-svn: 150877
-
David Meyer authored
On Cygwin/MingW, add SharedLibDir and LLVMToolDir to the library search path, since shared libraries are placed in 'bin'. (static libraries are still in 'lib'). llvm-svn: 150876
-
Douglas Gregor authored
eliminating a bunch of redundant code and properly modeling how the captures of outside blocks/lambdas affect the types seen by inner captures. This new scheme makes two passes over the capturing scope stack. The first pass goes up the stack (from innermost to outermost), assessing whether the capture looks feasible and stopping when it either hits the scope where the variable is declared or when it finds an existing capture. The second pass then walks down the stack (from outermost to innermost), capturing the variable at each step and updating the captured type and the type that an expression referring to that captured variable would see. It also checks type-specific restrictions, such as the inability to capture an array within a block. Note that only the first odr-use of each variable needs to do the full walk; subsequent uses will find the capture immediately, so multiple walks need not occur. The same routine that builds the captures can also compute the type of the captures without signaling errors and without actually performing the capture. This functionality is used to determine the type of declaration references as well as implementing the weird decltype((x)) rule within lambda expressions. The capture code now explicitly takes sides in the debate over C++ core issue 1249, which concerns the type of captures within nested lambdas. We opt to use the more permissive, more useful definition implemented by GCC rather than the one implemented by EDG. llvm-svn: 150875
-
Craig Topper authored
llvm-svn: 150874
-
Craig Topper authored
Add X86 assembler and disassembler support for AMD SVM instructions. Original patch by Kay Tiong Khoo. Few tweaks by me for code density and to reduce replication. llvm-svn: 150873
-
Douglas Gregor authored
variable; it was previously duplicated, and one of the copies failed to account for outer non-mutable lambda captures. llvm-svn: 150872
-
Greg Clayton authored
the lldb_private::StackFrame objects hold onto a weak pointer to the thread object. The lldb_private::StackFrame objects the the most volatile objects we have as when we are doing single stepping, frames can often get lost or thrown away, only to be re-created as another object that still refers to the same frame. We have another bug tracking that. But we need to be able to have frames no longer be able to get the thread when they are not part of a thread anymore, and this is the first step (this fix makes that possible but doesn't implement it yet). Also changed lldb_private::ExecutionContextScope to return shared pointers to all objects in the execution context to further thread harden the internals. llvm-svn: 150871
-
Richard Smith authored
are represented as prvalues in C++; don't be fooled into thinking they're global lvalues. llvm-svn: 150870
-
rdar://problem/10885993Eli Friedman authored
This should probably be refactored... but it isn't completely obvious what refactoring is best. llvm-svn: 150869
-
Ted Kremenek authored
llvm-svn: 150868
-
Chandler Carruth authored
etc. No functionality changed. llvm-svn: 150867
-
Richard Smith authored
We had two separate issues here: firstly, varions functions were assuming that they did not need to perform semantic checks on trivial destructors (this is not true in C++11, where a trivial destructor can nonetheless be private or deleted), and a bunch of DiagnoseUseOfDecl calls were missing for uses of destructors. llvm-svn: 150866
-
Eli Friedman authored
Fix a rather nasty regression from r150690: LHS != RHS does not imply LHS->stripPointerCasts() != RHS->stripPointerCasts(). llvm-svn: 150863
-
Richard Smith authored
decent diagnostics. Finish the work of combining all the 'ShouldDelete' functions into one. In unifying the code, fix a minor bug where an anonymous union with a deleted default constructor as a member of a union wasn't being considered as making the outer union's default constructor deleted. llvm-svn: 150862
-
Sean Callanan authored
fetching it. llvm-svn: 150861
-
Chad Rosier authored
llvm-svn: 150860
-
Chad Rosier authored
llvm-svn: 150859
-
Eric Christopher authored
with full types if they exist. rdar://10809898 and rdar://10209967 and rdar://10400981 llvm-svn: 150858
-
Eric Christopher authored
llvm-svn: 150857
-
Eric Christopher authored
emit less than complete types on purpose on occasion and so our caches aren't useful for this kind of lazy emitting. llvm-svn: 150856
-
Chad Rosier authored
llvm-svn: 150855
-
Enrico Granata authored
making it so that the std::map test case does a better job at checking for interference between expression parser and synthetic children; plus being more verbose in the comments llvm-svn: 150854
-
Eric Christopher authored
llvm-svn: 150852
-
Lang Hames authored
llvm-svn: 150851
-
Ted Kremenek authored
Have conjured symbols depend on LocationContext, to add context sensitivity for functions called more than once. llvm-svn: 150849
-
Eric Christopher authored
llvm-svn: 150848
-
- Feb 17, 2012
-
-
Anna Zaks authored
llvm-svn: 150847
-
Anna Zaks authored
it aware of CString APIs that return the input parameter. Malloc Checker needs to know how the 'strcpy' function is evaluated. Introduce the dependency on CStringChecker for that. CStringChecker knows all about these APIs. Addresses radar://10864450 llvm-svn: 150846
-
Anna Zaks authored
(Ex: It was not treating __inline_strcpy as strcpy. Will add tests that rely on this later on.) llvm-svn: 150845
-
Fariborz Jahanian authored
until the end when all their ivars are known then. llvm-svn: 150844
-
Jim Ingham authored
llvm-svn: 150843
-
Jakob Stoklund Olesen authored
llvm-svn: 150842
-
Matt Beaumont-Gay authored
llvm-svn: 150841
-
Lang Hames authored
llvm-svn: 150840
-
Fariborz Jahanian authored
and some cleanup. llvm-svn: 150839
-
Richard Smith authored
llvm-svn: 150838
-
Kevin Enderby authored
llvm-svn: 150836
-
Howard Hinnant authored
llvm-svn: 150835
-
Howard Hinnant authored
llvm-svn: 150834
-
Jakob Stoklund Olesen authored
llvm-svn: 150833
-