summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't forget to run destructors when we create an array temporary of class type.Richard Smith2013-02-024-11/+81
| | | | llvm-svn: 174257
* Revert "Update checker build to checker-271."Ted Kremenek2013-02-022-15/+1
| | | | | | Turns out we didn't update scan-build to work with HTML files in nested directories. llvm-svn: 174256
* Fixed another whitespace issue... *sigh*.Michael Gottesman2013-02-021-3/+3
| | | | llvm-svn: 174255
* Fixed whitespace.Michael Gottesman2013-02-021-1/+1
| | | | llvm-svn: 174254
* On platforms which do not support ARC natively, do not mark ↵Michael Gottesman2013-02-022-7/+37
| | | | | | | | | objc_retain/objc_release as "nonlazybind". rdar://13108298. rdar://13129783. llvm-svn: 174253
* Update checker build to checker-271.Ted Kremenek2013-02-022-1/+15
| | | | llvm-svn: 174252
* Remove AttrBuilder::Raw().Bill Wendling2013-02-022-27/+18
| | | | llvm-svn: 174251
* Use the AttributeSet's iterators.Bill Wendling2013-02-022-5/+22
| | | | | | | Use the AttributeSet's iterators in AttrBuilder::hasAttributes() when determining of the intersection of the AttrBuilder and AttributeSet is non-null. llvm-svn: 174250
* Revert r174246, accidentally committed.David Blaikie2013-02-024-20/+2
| | | | | | This reverts commit 1513eb9284c23acfd19cf742b95996fbb11ca741. llvm-svn: 174249
* Sentenc-ify comment added in r174206.David Blaikie2013-02-021-2/+2
| | | | | | Based on post-commit review by Paul Robinson. llvm-svn: 174248
* Generalize DebugInfo tests by avoiding explicit metadata numbersDavid Blaikie2013-02-0217-36/+39
| | | | | | | | | | | | | | | This addresses several (not all) debug info tests that use explicit metadata numbers. Wherever the same number appeared more than once in a test I used a named match to ensure the same number appeared in all those cases (this may still be overly constraining test cases as they may not have actually cared about that relationship). For one-off numbers I just replaced them with an unnamed regex. This may underconstrain poorly written test cases that were interested in checking that certain metadata nodes were related but didn't actually match on all the related nodes numbers. llvm-svn: 174247
* BasicsDavid Blaikie2013-02-024-2/+20
| | | | llvm-svn: 174246
* [analyzer] Always inline functions with bodies generated by BodyFarm.Anna Zaks2013-02-024-3/+68
| | | | | | | | Inlining these functions is essential for correctness. We often have cases where we do not inline calls. For example, the shallow mode and when reanalyzing previously inlined ObjC methods as top level. llvm-svn: 174245
* [analyzer] Print Inline mode with -analyzer-display-progress.Anna Zaks2013-02-021-4/+15
| | | | llvm-svn: 174244
* [analyzer] Fix typo.Anna Zaks2013-02-021-1/+1
| | | | llvm-svn: 174243
* This patch makes "&Cls::purevfn" not an odr use. This isn't what the standardNick Lewycky2013-02-026-18/+58
| | | | | | | | | says, but that's a defect (to be filed). "Cls::purevfn()" is still an odr use. Also fixes a bug that caused us to not mark the function referenced just because we didn't want to mark it odr used. llvm-svn: 174242
* Revert accidental commit (ran svn commit from wrong directory).Nick Lewycky2013-02-021-61/+7
| | | | llvm-svn: 174241
* This patch makes "&Cls::purevfn" not an odr use. This isn't what the standardNick Lewycky2013-02-021-7/+61
| | | | | | | | | says, but that's a defect (to be filed). "Cls::purevfn()" is still an odr use. Also fixes a bug in the previous patch that caused us to not mark the function referenced just because we didn't want to mark it odr used. llvm-svn: 174240
* rdar://13126763Shuxin Yang2013-02-022-13/+62
| | | | | | | Fix a bug in DAGCombine. The symptom is mistakenly optimizing expression "x + x*x" into "x * 3.0". llvm-svn: 174239
* libclang: introduce cxstring::{createRef,createDup} for C stringsDmitri Gribenko2013-02-028-181/+200
| | | | | | Also migrate all clients from the old API. llvm-svn: 174238
* Correct indentation for dumping LexicalScope.Manman Ren2013-02-022-15/+7
| | | | llvm-svn: 174237
* Moving from std::auto_ptr<char> to std::string for simple string memory ↵Enrico Granata2013-02-011-11/+10
| | | | | | | | management. It is better practice and, also, it is not clear whether std::auto_ptr<> is smart enough to know about delete[] vs. delete llvm-svn: 174236
* [Dwarf] avoid emitting multiple AT_const_value for static memebers.Manman Ren2013-02-012-3/+72
| | | | | | | | Testing case is reduced from MultiSource/BenchMarks/Prolangs-C++/deriv1. rdar://problem/13071590 llvm-svn: 174235
* Merge "special" types from different modules in the AST reader.Douglas Gregor2013-02-014-2/+36
| | | | | | | | | Different modules may have different views of the various "special" types in the AST, such as the redefinition type for "id". Merge those types rather than only considering the redefinition types for the first AST file loaded. llvm-svn: 174234
* <rdar://problem/13050227>Greg Clayton2013-02-011-1/+19
| | | | | | | | | | | | Added a regular expression command called "_regexp-list" which mimics the GDB "line" command in the following forms: LINENUM, to list around that line in current file, FILE:LINENUM, to list around that line in that file, FUNCTION, to list around beginning of that function, *ADDRESS, to list around the line containing that address. ADDRESS, same as above, but don't require a '*' as long as ADDRESS is hex llvm-svn: 174233
* Add notes about future PowerPC featuresBill Schmidt2013-02-011-0/+17
| | | | llvm-svn: 174232
* <rdar://problem/12693921>Greg Clayton2013-02-011-0/+54
| | | | | | Added the ability to send monitor command to the remote GDB server with "process plugin packet monitor". llvm-svn: 174231
* LLVM enablement for some older PowerPC CPUsBill Schmidt2013-02-013-0/+39
| | | | llvm-svn: 174230
* clang/test/CodeGenCXX/debug-info-class.cpp: Fixup for -Asserts.NAKAMURA Takumi2013-02-011-2/+3
| | | | llvm-svn: 174229
* Change the AttributeImpl to hold a single Constant* for the values.Bill Wendling2013-02-013-30/+28
| | | | | | This Constant could be an aggregate to represent multiple values. llvm-svn: 174228
* <rdar://problem/13130975>Greg Clayton2013-02-011-7/+7
| | | | | | Class global variables were not being linked correctly when debugging with DWARF in .o files. llvm-svn: 174227
* <rdar://problem/13092722>Greg Clayton2013-02-0110-262/+96
| | | | | | | | | | Fix in loading mach files from memory when using DynamicLoaderMacOSXDYLD. Removed the uuid mismatch warning that could be spit out and any time during debugging and removed the test case that was looking for that. Currently the "add-dsym" or "target symbols add" command will report an error when the UUID's don't match. Be more careful when checking and resolving section + offset addresses to make sure none of the base addresses are invalid. llvm-svn: 174222
* This patch aims to improve compile time performance by increasingPreston Gurd2013-02-011-13/+13
| | | | | | | | | | | | | the SCEV vector size in LoopStrengthReduce. It is observed that the BaseRegs vector size is 4 in most cases, and elements are frequently copied when it is initialized as SmallVector<const SCEV *, 2> BaseRegs. Our benchmark results show that the compilation time performance improved by ~0.5%. Patch by Wan Xiaofei. llvm-svn: 174219
* Const'ify Preprocessor::getPredefinesFileID.Argyrios Kyrtzidis2013-02-011-1/+1
| | | | llvm-svn: 174218
* Unbreak Makefile build after r174216Dmitri Gribenko2013-02-011-1/+2
| | | | llvm-svn: 174217
* Comment parsing: improve the fidelity of XML output for many block commandsDmitri Gribenko2013-02-0115-4/+213
| | | | | | | | | | | | | | This change introduces a 'kind' attribute for the <Para> tag, that captures the kind of the parent block command. For example: \todo Meow. used to be just <Para>Meow.</Para>, but now it is <Para kind="todo">Meow.</Para> llvm-svn: 174216
* Add some missing PPC cpusBill Schmidt2013-02-014-9/+339
| | | | llvm-svn: 174215
* objc: Provide correct fixit instruction when two mismatchedFariborz Jahanian2013-02-012-2/+25
| | | | | | nsstringis are compared without. // rdar://12716301 llvm-svn: 174214
* [analyzer] Explain why we have system-header-simulator*.h files.Jordan Rose2013-02-014-1/+20
| | | | | | Suggested by Csaba. Text based on an e-mail of mine on cfe-dev. llvm-svn: 174213
* Re-apply "[analyzer] Model trivial copy/move ctors with an aggregate bind."Jordan Rose2013-02-015-17/+183
| | | | | | | | With the optimization in the previous commit, this should be safe again. Originally applied in r173951, then reverted in r174069. llvm-svn: 174212
* [analyzer] Reuse a LazyCompoundVal if its type matches the new region.Jordan Rose2013-02-014-37/+72
| | | | | | | | | | | | | | | | | This allows us to keep from chaining LazyCompoundVals in cases like this: CGRect r = CGRectMake(0, 0, 640, 480); CGRect r2 = r; CGRect r3 = r2; Previously we only made this optimization if the struct did not begin with an aggregate member, to make sure that we weren't picking up an LCV for the first field of the struct. But since LazyCompoundVals are typed, we can make that inference directly by comparing types. This is a pure optimization; the test changes are to guard against possible future regressions. llvm-svn: 174211
* Add a testcase for some past-the-end address subtleties.Dan Gohman2013-02-011-0/+77
| | | | llvm-svn: 174210
* Correct the definition of ObjC's BOOL in our pre-canned set of defines. ↵Jim Ingham2013-02-011-1/+1
| | | | | | | | | | It's supposed to be "signed char" not "int". <rdar://problem/13131126> llvm-svn: 174209
* Two changes relevant to LEA and x32:David Sehr2013-02-015-3/+58
| | | | | | | | | 1) allows the use of RIP-relative addressing in 32-bit LEA instructions under x86-64 (ILP32 and LP64) 2) separates the size of address registers in 64-bit LEA instructions from control by ILP32/LP64. llvm-svn: 174208
* Fix errant fallthrough in the generation of the lifetime markers.Nadav Rotem2013-02-011-0/+1
| | | | | | Found by Alexander Kornienko. llvm-svn: 174207
* Fix exception handling line table problems introduced by r173593David Blaikie2013-02-014-17/+36
| | | | | | | | | | | | | r173593 made us a little too eager to associate all code at the end of a function with the user-written 'return' line. This caused problems with breakpoints as they'd be set in exception handling code preceeding the actual non-exception return handling code, leading to the breakpoint never being hit in non-exceptional execution. This change restores the pre-r173593 exception handling line information where the cleanup code is associated with the '}' not the return line. llvm-svn: 174206
* Fix misplaced 'break'.Jim Grosbach2013-02-011-3/+3
| | | | llvm-svn: 174205
* Add -mqpx and -mno-qpx feature flags to toggle use of the PPC QPX vector ↵Hal Finkel2013-02-014-1/+16
| | | | | | | | instruction set I've renamed the altivec test to ppc-features (because now there is more than one feature to test). llvm-svn: 174204
* [driver] Don't try to generate diagnostic information for dsymutil crashes.Chad Rosier2013-02-013-2/+5
| | | | | | Part of rdar://13134273 llvm-svn: 174203
* Micro change: moved '{' for better readability (+don't confuse ↵Alexander Kornienko2013-02-011-5/+5
| | | | | | -Wimplicit-fallthrough) llvm-svn: 174202
OpenPOWER on IntegriCloud