summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Clean up some signedness oddities in this code noticed by clang.John McCall2010-04-071-5/+6
| | | | llvm-svn: 100599
* Move printing of target-indepedent DEBUG_VALUE commentsDale Johannesen2010-04-073-52/+79
| | | | | | | into AsmPrinter. Target-dependent form is still generated by FastISel and still handled in X86 code. llvm-svn: 100596
* Teach -Wsign-compare to treat 1 << blah as "idiomatically non-negative".John McCall2010-04-072-0/+16
| | | | | | Fixes a spurious warning in LLVM. llvm-svn: 100595
* Fix crash in StoreManager::CastRegion() when the base region is a type with ↵Ted Kremenek2010-04-072-7/+16
| | | | | | 0 size. llvm-svn: 100594
* Check access for the implicit calls to destructors that occur when weJohn McCall2010-04-074-2/+21
| | | | | | | | have a temporary object in C++. Also fix a tag mismatch that Doug noticed. llvm-svn: 100593
* Post regalloc LICM. Work in progress.Evan Cheng2010-04-073-12/+170
| | | | llvm-svn: 100592
* Fix CIndex crash on invalid code reported in <rdar://problem/7833619>.Ted Kremenek2010-04-072-2/+7
| | | | llvm-svn: 100589
* Improve on diagnostics when an objc class is used asFariborz Jahanian2010-04-075-14/+15
| | | | | | a stand-alone type declaration. llvm-svn: 100588
* Implement code completion for Objective-C method declarations andDouglas Gregor2010-04-076-1/+346
| | | | | | | | | | | | | | | | definitions, e.g., after - or - (id) we'll find all of the "likely" instance methods that one would want to declare or define at this point. In the latter case, we only produce results whose return types match "id". llvm-svn: 100587
* Do not emit specification DIE with DW_AT_specification attribute for member ↵Devang Patel2010-04-062-2/+106
| | | | | | functions of a funcation local class. This trips gdb's partial scan of DIEs at load time. Fixes Radar 7833483. llvm-svn: 100586
* Let that which does not matter truly slide.Jakob Stoklund Olesen2010-04-061-2/+2
| | | | | | | This test only cares about alignment, so don't test for other cruft. An upcoming llvm-gcc patch needs this. llvm-svn: 100584
* Minor clean up.Fariborz Jahanian2010-04-062-21/+0
| | | | llvm-svn: 100583
* default access for synthesize ivar is @protect.Fariborz Jahanian2010-04-062-1/+4
| | | | | | Fixes radar 7823675. llvm-svn: 100582
* Fix a number of clang -Wsign-compare warnings that didn't have an obviousJohn McCall2010-04-065-5/+5
| | | | | | | solution. The only reason these don't fire with gcc-4.2 is that gcc turns off part of -Wsign-compare in C++ on accident. llvm-svn: 100581
* Revert 100573, it's causing some testsuite problems.Dale Johannesen2010-04-062-60/+71
| | | | llvm-svn: 100578
* Patch to not build ivar ASTs when they are ilegallyFariborz Jahanian2010-04-064-19/+26
| | | | | | declared in categories. llvm-svn: 100577
* Devote a special diagnostic to the typoJohn McCall2010-04-063-0/+26
| | | | | | | (void*) someFunction(5, 10, 15, 20); where the cast is presumably meant to be to 'void'. llvm-svn: 100574
* Move printing of DEBUG_VALUE comments to target-independent place.Dale Johannesen2010-04-062-71/+60
| | | | | | There is probably a more elegant way to do this. llvm-svn: 100573
* Teach MemRegion::getBaseRegion() about ObjCIvarRegions. We want to treatTed Kremenek2010-04-062-7/+29
| | | | | | | them the same way as fields. This fixes a regression in RegionStore::RemoveDeadbindings() that emerged from going to the cluster-based analysis. llvm-svn: 100570
* Expand SELECT and SELECT_CC for NEON vector types.Bob Wilson2010-04-061-0/+2
| | | | | | Radar 7770501. llvm-svn: 100568
* Allow for the possibility that a debug-value pointsDale Johannesen2010-04-061-2/+13
| | | | | | to a SDNode that didn't have code generated for it. llvm-svn: 100566
* Reverting 100530 & 100531 due to regressions in the GDB test suite.Stuart Hastings2010-04-063-28/+9
| | | | llvm-svn: 100563
* Implement the protected access restriction ([class.protected]), which requiresJohn McCall2010-04-0615-310/+969
| | | | | | | | that protected members be used on objects of types which derive from the naming class of the lookup. My first N attempts at this were poorly-founded, largely because the standard is very badly worded here. llvm-svn: 100562
* Fix PR6696 and PR6663Jim Grosbach2010-04-065-14/+84
| | | | | | | | | | | | | | | | | When a frame pointer is not otherwise required, and dynamic stack alignment is necessary solely due to the spilling of a register with larger alignment requirements than the default stack alignment, the frame pointer can be both used as a general purpose register and a frame pointer. That goes poorly, for obvious reasons. This patch brings back a bit of old logic for identifying the use of such registers and conservatively reserves the frame pointer during register allocation in such cases. For now, implement for X86 only since it's 32-bit linux which is hitting this, and we want a targeted fix for 2.7. As a follow-on, this will be expanded to handle other targets, as theoretically the problem could arise elsewhere as well. llvm-svn: 100559
* When code completion produces an overload set as its results (e.g.,Douglas Gregor2010-04-062-3/+3
| | | | | | | while we're completing in the middle of a function call), also produce "ordinary" name results that show what can be typed at that point. llvm-svn: 100558
* Do not produce semicolons at the end of code-completion resultsDouglas Gregor2010-04-064-27/+13
| | | | llvm-svn: 100557
* Make this hack more specific to the Apple gcc 4.2 non-LLVM compiler.Bill Wendling2010-04-061-1/+1
| | | | llvm-svn: 100556
* Only prove macros as code-completion results when we're in a caseDouglas Gregor2010-04-062-23/+1
| | | | | | | statement or for ordinary names. This means that we won't show macros when completing, e.g., member expressions such as "p->". llvm-svn: 100555
* Don't try to collapse DomainValues onto an incompatible SSE domain.Jakob Stoklund Olesen2010-04-062-4/+142
| | | | | | This fixes the Bullet regression on i386/nocona. llvm-svn: 100553
* Fix ccc-analyzer's handling of quoted arguments in the build command. Fixes ↵Ted Kremenek2010-04-061-6/+1
| | | | | | PR 6791.[B llvm-svn: 100551
* performance: get rid of repeated dereferencing of use_iterator by caching ↵Gabor Greif2010-04-061-5/+7
| | | | | | its result llvm-svn: 100550
* make more two predicates constantGabor Greif2010-04-061-15/+15
| | | | llvm-svn: 100549
* When sending a message to "id", apply some heuristics to try to narrowDouglas Gregor2010-04-062-0/+110
| | | | | | | down the set of code-completion results based on Objective-C conventions. llvm-svn: 100548
* performance: get rid of repeated dereferencing of use_iterator by caching ↵Gabor Greif2010-04-061-21/+28
| | | | | | its result llvm-svn: 100547
* const-ize predicate ValueIsOnlyUsedLocallyOrStoredToOneGlobalGabor Greif2010-04-061-9/+10
| | | | llvm-svn: 100546
* add a testcase that the integrated assembler rejects, this verifies Chris Lattner2010-04-061-0/+8
| | | | | | that the integrated assembler is working. llvm-svn: 100545
* use CallSite to access calls vs. invokes uniformlyGabor Greif2010-04-061-5/+6
| | | | | | and remove assumptions about operand order llvm-svn: 100544
* teach clang to install the inline asm diagnostic handler,Chris Lattner2010-04-062-3/+78
| | | | | | | | | | | | | | | | | allowing backend errors to be mapped through clang's diagnostics subsystem, including the backend location info. We now get: $ clang asm.c -c -o t.o -integrated-as <inline asm>:1:2: error: unrecognized instruction abc incl %eax ^ 1 diagnostic generated. With colors, and correct "# diagnostics generated". llvm-svn: 100543
* this accessor doesn't need to copy the string.Chris Lattner2010-04-061-1/+1
| | | | llvm-svn: 100542
* enhance SMDiagnostic to also maintain a pointer to the SourceMgr.Chris Lattner2010-04-064-14/+23
| | | | | | | Add a simplified constructor for clients that don't have locations like "file not found" errors. llvm-svn: 100538
* reduce indentation, tidy.Chris Lattner2010-04-062-115/+122
| | | | llvm-svn: 100537
* improved wording around ABIBlaine Garst2010-04-061-5/+6
| | | | llvm-svn: 100536
* Make code-completion for Objective-C message sends to "id" work in theDouglas Gregor2010-04-066-4/+88
| | | | | | | | presence of precompiled headers by forcibly loading all of the methods we know about from the PCH file before constructing our code-completion list. llvm-svn: 100535
* fit in 80 colsChris Lattner2010-04-061-2/+3
| | | | llvm-svn: 100534
* Put type restriction on convesion to nonconforming 'id' back in Fariborz Jahanian2010-04-062-3/+12
| | | | | | block pointer type comparison. llvm-svn: 100533
* Code clean up. Move includes from VirtRegRewriter.h to VirtRegRewriter.cpp.Evan Cheng2010-04-062-4/+5
| | | | llvm-svn: 100532
* Revise debug info machinery to digest nested functions and classes.Stuart Hastings2010-04-063-9/+28
| | | | | | | | | | | A certain GDB testsuite case (local.cc) has a function nested inside a class nested inside another function. GCC presents the innermost function to llvm-convert first. Heretofore, the debug info mistakenly placed the inner function at module scope. This patch walks the GCC context links and instantiates the outer class and function so the debug info is properly nested. Radar 7426545. llvm-svn: 100530
* Driver: Add a Tool::hasGoodDiagnostics hook, and use it to simplify logic forDaniel Dunbar2010-04-063-5/+10
| | | | | | | | deciding when we need to emit an extra "command failed" diagnostic. - This also fixes the case where we were emitting that extra diagnostics, even when using clang w/ the integrated assembler, which has good diagnostics. llvm-svn: 100529
* Implement support for code completion of an Objective-C message send toDouglas Gregor2010-04-062-9/+88
| | | | | | | | | | "id" or an expression of type "id". In these cases, we produce a list of all of the (class or instance) methods, respectively, that we know about. Note that this implementation does not yet work well with precompiled headers; that's coming soon. llvm-svn: 100528
* Add test for code completion of Objective-C message sends to classes.Douglas Gregor2010-04-061-0/+39
| | | | llvm-svn: 100527
OpenPOWER on IntegriCloud