summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Improve diagnostics a bit for bad member initializers, and fix an obscure ↵Eli Friedman2012-02-224-26/+65
| | | | | | bug involving packs. Fixes PR12049. llvm-svn: 151130
* Switch to BSD/MIT dual license.Peter Collingbourne2012-02-222-2/+37
| | | | llvm-svn: 151129
* For stepping performance I added the ability to outlaw all memory accessesesGreg Clayton2012-02-227-39/+159
| | | | | | | | | | | to the __PAGEZERO segment on darwin. The dynamic loader now correctly doesn't slide __PAGEZERO and it also registers it as an invalid region of memory. This allows us to not make any memory requests from the local or remote debug session for any addresses in this region. Stepping performance can improve when uninitialized local variables that point to locations in __PAGEZERO are attempted to be read from memory as we won't even make the memory read or write request. llvm-svn: 151128
* Improve comment. Thanks for Andrew for the suggestion.Rafael Espindola2012-02-221-2/+3
| | | | llvm-svn: 151127
* test/CodeGenCXX/thiscall-struct-return.cpp: Relax expressions for -Asserts.NAKAMURA Takumi2012-02-221-3/+3
| | | | llvm-svn: 151126
* Semantically revert 151015. Add a comment on why we should be able to assertRafael Espindola2012-02-222-7/+55
| | | | | | | | the dominance once the dominates method is fixed and why we can use the builder's insertion point. Fixes pr12048. llvm-svn: 151125
* [analyzer] Malloc checker: mark 'strdup' and 'strndup' as allocators.Anna Zaks2012-02-222-20/+61
| | | | llvm-svn: 151124
* Adding support for Microsoft's thiscall calling convention. LLVM side of ↵Aaron Ballman2012-02-222-2/+49
| | | | | | the patch. llvm-svn: 151123
* Adding support for Microsoft's thiscall calling convention. Clang side of ↵Aaron Ballman2012-02-222-9/+64
| | | | | | the patch. llvm-svn: 151122
* [analyzer] Malloc: fix another false positive.Anna Zaks2012-02-222-15/+42
| | | | | | | , when we return a symbol reachable to the malloced one via pointer arithmetic. llvm-svn: 151121
* [analyzer] Change naming in bug reports "tainted" -> "untrusted"Anna Zaks2012-02-222-14/+15
| | | | llvm-svn: 151120
* Change #ifdef markers around lockdown and SpringBoardJason Molenda2012-02-2212-36/+74
| | | | | | | calls to dpeend on WITH_SPRINGBOARD and WITH_LOCKDOWN instead of __arm__. Add an RNBSocket::useFD method. llvm-svn: 151119
* [libclang] Index the field references of a designated initializer, ↵Argyrios Kyrtzidis2012-02-222-0/+22
| | | | | | rdar://10906206 llvm-svn: 151118
* Implement C++11 [expr.call]p11: If the operand to a decltype-specifier is aRichard Smith2012-02-2210-19/+276
| | | | | | | | | | | | | | | | | | function call (or a comma expression with a function call on its right-hand side), possibly parenthesized, then the return type is not required to be complete and a temporary is not bound. Other subexpressions inside a decltype expression do not get this treatment. This is implemented by deferring the relevant checks for all calls immediately within a decltype expression, then, when the expression is fully-parsed, checking the relevant constraints and stripping off any top-level temporary binding. Deferring the completion of the return type exposed a bug in overload resolution where completion of the argument types was not attempted, which is also fixed by this change. llvm-svn: 151117
* Use a sentry object to properly initialize/terminate LLDB.Johnny Chen2012-02-221-4/+14
| | | | llvm-svn: 151116
* Improve handling of blockaddresses in bugpoint when splitting a module. ↵Eli Friedman2012-02-221-6/+54
| | | | | | Patch by Daniel Reynaud. llvm-svn: 151115
* ADT/SparseSet.h: Fix up header dependencies.NAKAMURA Takumi2012-02-221-0/+2
| | | | llvm-svn: 151114
* Clarify ARM calling conventions.Jakob Stoklund Olesen2012-02-221-0/+2
| | | | llvm-svn: 151113
* Fix typo correction of template arguments to once again allow type names.Kaelyn Uhrain2012-02-224-4/+20
| | | | llvm-svn: 151112
* Use SparseSet for the RAFast live virtual register map.Jakob Stoklund Olesen2012-02-221-73/+110
| | | | | | | | | | | | This makes RAFast 4% faster, and it gets rid of the dodgy DenseMap iteration. This also revealed that RAFast would sometimes dereference DenseMap iterators after erasing other elements from the map. That does seem to work in the current DenseMap implementation, but SparseSet doesn't allow it. llvm-svn: 151111
* Add a Briggs and Torczon sparse set implementation.Jakob Stoklund Olesen2012-02-224-0/+465
| | | | | | | | | | | For objects that can be identified by small unsigned keys, SparseSet provides constant time clear() and fast deterministic iteration. Insert, erase, and find operations are typically faster than hash tables. SparseSet is useful for keeping information about physical registers, virtual registers, or numbered basic blocks. llvm-svn: 151110
* Provide a way to disable auto-generation of preprocessed files during clang Chad Rosier2012-02-222-0/+4
| | | | | | | crash. This can speedup the process of generating a delta reduced test case. rdar://10905465 llvm-svn: 151109
* Use Xcode relative compilers when possibleDave Zarzycki2012-02-221-1/+6
| | | | llvm-svn: 151108
* Use a function in MathExtras to do sign extension.Akira Hatanaka2012-02-221-1/+1
| | | | llvm-svn: 151107
* modern objc translator: fixes a bug where a class declaration with notFariborz Jahanian2012-02-212-10/+18
| | | | | | any implementation in tu was not being translated. llvm-svn: 151106
* Remove a bad PowerPC test.Jakob Stoklund Olesen2012-02-211-160/+0
| | | | | | | | | | This test case was way too strict, matching the entire assembly output. Every non-trivial change to the ppc backend or -O0 pipeline required the test to be updated. It should be replaced with a test of the specific vaarg feature. llvm-svn: 151105
* Calls don't really change the stack pointer.Jakob Stoklund Olesen2012-02-211-1/+2
| | | | | | | Even if a call instruction has %SP<imp-def> operands, it doesn't change the value of the stack pointer. llvm-svn: 151104
* objective-c modern translator. accessing ivars using modern abi - wip.Fariborz Jahanian2012-02-212-62/+39
| | | | llvm-svn: 151103
* Make sure Stmt::dump() is included in libclang.Argyrios Kyrtzidis2012-02-211-2/+2
| | | | llvm-svn: 151102
* In the conflict between C++11 [expr.prim.general]p4, which declaresDouglas Gregor2012-02-212-2/+15
| | | | | | | | | | | that 'this' can be used in the brace-or-equal-initializer of a non-static data member, and C++11 [expr.prim.lambda]p9, which says that lambda expressions not in block scope can have no captures, side fully with C++11 [expr.prim.general]p4 by allowing 'this' to be captured within these initializers. This seems to be the intent of non-static data member initializers. llvm-svn: 151101
* Fix a crash in the diangostic code in EvalConstant. PR12043.Eli Friedman2012-02-212-1/+8
| | | | llvm-svn: 151100
* Add API "handleMoveIntoBundl" for updating liveness when moving instructions ↵Lang Hames2012-02-212-14/+77
| | | | | | | | | | | | into bundles. This method takes a bundle start and an MI being bundled, and makes the intervals for the MI's operands appear to start/end on the bundle start. Also fixes some minor cosmetic issues (whitespace, naming convention) in the HMEditor code. llvm-svn: 151099
* Testcase for previous commit.Eric Christopher2012-02-211-0/+45
| | | | | | rdar://10493979 llvm-svn: 151098
* There's no need for a DW_AT_byte_size on a pointer type.Eric Christopher2012-02-214-6/+6
| | | | | | Part of rdar://10493979 where it reduces by about .5% (10k) llvm-svn: 151097
* No need to go to object file, -emit-llvm is sufficient to see if clangEric Christopher2012-02-211-1/+1
| | | | | | itself crashes. llvm-svn: 151095
* Skip testing the crtbegin.o, and resume using a single variable for theChandler Carruth2012-02-211-6/+6
| | | | | | prefixes. It seems only crtbegin.o uses the strange formatting. llvm-svn: 151094
* Use the target-aware constant folder on expressions to improve the chanceNick Lewycky2012-02-212-2/+52
| | | | | | | | | | | | | they'll be simple enough to simulate, and to reduce the chance we'll encounter equal but different simple pointer constants. This removes the symptoms from PR11352 but is not a full fix. A proper fix would either require a guarantee that two constant objects we simulate are folded when equal, or a different way of handling equal pointers (ie., trying a constantexpr icmp on them to see whether we know they're equal or non-equal or unsure). llvm-svn: 151093
* Clean up, add some documentation, and make this test return to checkingChandler Carruth2012-02-211-12/+10
| | | | | | | | the linker toolchainness a bit more thoroughly. It used to work this way, but hit buildbot issues. Hopefully subsequent fixes have addressed those problems, but I'll be watching the bots. llvm-svn: 151090
* Don't crash on attempts to synthesize an invalid property.John McCall2012-02-212-0/+10
| | | | | | rdar://problem/10904479 llvm-svn: 151089
* Modernize conversion to bool to the explicit bool conversion operator ↵Howard Hinnant2012-02-219-14/+22
| | | | | | (library wide). This fixes http://llvm.org/bugs/show_bug.cgi?id=12058. llvm-svn: 151088
* Redirect the output to /dev/null. This prevents the output from clutteringRichard Trieu2012-02-211-1/+1
| | | | | | up the build enviroment. llvm-svn: 151087
* Install lldb tool into /usr/local/bin if sdk==iphoneos.Jason Molenda2012-02-211-0/+3
| | | | llvm-svn: 151085
* Modernize relational operators for shared_ptr and unique_ptr. This includes ↵Howard Hinnant2012-02-215-8/+377
| | | | | | adding support for nullptr, and using less<T*>. Fixes http://llvm.org/bugs/show_bug.cgi?id=12056. llvm-svn: 151084
* Proper support for a bastardized darwin-eabi hybird ABI.Evan Cheng2012-02-215-8/+10
| | | | llvm-svn: 151083
* Only pop the expression evaluation context corresponding to a lambdaDouglas Gregor2012-02-212-5/+15
| | | | | | | | | expression after we've finished the function body of the corresponding function call operator. Otherwise, ActOnFinishFunctionBody() will see the (unfinished) evaluation context of the lambda expression itself. Fixes PR12031. llvm-svn: 151082
* Don't assume that a valid expression for the first part of a for-statementRichard Smith2012-02-212-2/+12
| | | | | | is non-null when diagnosing a broken attempt to write a for-range-statement. llvm-svn: 151081
* When calling a non variadic format function(vprintf, vscanf, NSLogv, …), ↵Jean-Daniel Dupas2012-02-214-18/+104
| | | | | | warn if the format string argument is a parameter that is not itself declared as a format string with compatible format. llvm-svn: 151080
* s/the the/the/Rafael Espindola2012-02-211-1/+1
| | | | llvm-svn: 151079
* Fix comment.Johnny Chen2012-02-211-1/+1
| | | | llvm-svn: 151077
* Improve our handling of lambda expressions that occur within defaultDouglas Gregor2012-02-219-19/+85
| | | | | | | | | | | | | | | | | | | arguments. There are two aspects to this: - Make sure that when marking the declarations referenced in a default argument, we don't try to mark local variables, both because it's a waste of time and because the semantics are wrong: we're not in a place where we could capture these variables again even if it did make sense. - When a lambda expression occurs in a default argument of a function template, make sure that the corresponding closure type is considered dependent, so that it will get properly instantiated. The second bit is a bit of a hack; to fix it properly, we may have to rearchitect our handling of default arguments, parsing them only after creating the function definition. However, I'd like to separate that work from the lambdas work. llvm-svn: 151076
OpenPOWER on IntegriCloud