summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Erm, previous patch was wrong; Thanks Bill\!Stuart Hastings2010-01-141-2/+0
| | | | llvm-svn: 93381
* Enable assertions by default for Apple-style builds.Stuart Hastings2010-01-141-2/+2
| | | | llvm-svn: 93380
* Refactor the "is this declaration interesting" logic inDouglas Gregor2010-01-141-33/+51
| | | | | | code-completion's ResultBuilder::MaybeAddResult for later reuse. llvm-svn: 93379
* Look through using declarations when determining whether one decl hides anotherDouglas Gregor2010-01-141-0/+3
| | | | llvm-svn: 93378
* Perform format-expansion on %select results.John McCall2010-01-132-5/+18
| | | | llvm-svn: 93377
* Banish the notion of a "rank" for code-completion results, since weDouglas Gregor2010-01-132-268/+205
| | | | | | are no longer using it for anything. No intended functionality change. llvm-svn: 93376
* this is an SSE-specific issue.Chris Lattner2010-01-132-20/+20
| | | | llvm-svn: 93373
* X86 if conversion + tail merging issues from PR6032.Chris Lattner2010-01-131-0/+20
| | | | llvm-svn: 93372
* Improve the sorting of code-completion results. We now always sort byDouglas Gregor2010-01-1323-307/+312
| | | | | | | | the "typed" text, first, then take into account nested-name-specifiers, name hiding, etc. This means that the resulting sort is actually alphabetical :) llvm-svn: 93370
* When the visitSub method was split into visitSub and visitFSub, this xform wasBill Wendling2010-01-132-11/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added to the FSub version. However, the original version of this xform guarded against doing this for floating point (!Op0->getType()->isFPOrFPVector()). This is causing LLVM to perform incorrect xforms for code like: void func(double *rhi, double *rlo, double xh, double xl, double yh, double yl){ double mh, ml; double c = 134217729.0; double up, u1, u2, vp, v1, v2; up = xh*c; u1 = (xh - up) + up; u2 = xh - u1; vp = yh*c; v1 = (yh - vp) + vp; v2 = yh - v1; mh = xh*yh; ml = (((u1*v1 - mh) + (u1*v2)) + (u2*v1)) + (u2*v2); ml += xh*yl + xl*yh; *rhi = mh + ml; *rlo = (mh - (*rhi)) + ml; } The last line was optimized away, but rl is intended to be the difference between the infinitely precise result of mh + ml and after it has been rounded to double precision. llvm-svn: 93369
* Don't report ambiguities in the user-defined conversion if we weren't supposedJohn McCall2010-01-132-1/+17
| | | | | | | | | | | | to be considering user-defined conversions in the first place. Doug, please review; I'm not sure what we should be doing if we see a real ambiguity in selecting a copy constructor when otherwise suppressing user-defined conversions. Fixes PR6014. llvm-svn: 93365
* Add getSource() to SuccIteratorTobias Grosser2010-01-131-0/+5
| | | | | | Get the source BB of an iterator. llvm-svn: 93364
* Extend SuccIteratorTobias Grosser2010-01-131-1/+62
| | | | | | | Implement most of the missing methods to make SuccIterator random access. operator[] is still missing. llvm-svn: 93363
* Don't a.k.a. through the primary typedef of an anonymous tag decl.John McCall2010-01-133-0/+20
| | | | llvm-svn: 93362
* Code-completion for @public, @protected, @private, @package.Douglas Gregor2010-01-135-3/+63
| | | | llvm-svn: 93361
* this test requires SSE, thanks to jyasskin for pointing this out.Chris Lattner2010-01-131-1/+1
| | | | llvm-svn: 93360
* Reorganize CIndex.cpp into clearer sections of functions, and add a utility ↵Ted Kremenek2010-01-131-98/+117
| | | | | | function 'MakeCXCursor' to centralize the logic for creating CXCursor objects. llvm-svn: 93359
* Fixes a rewrite bug rewriting a block call argument which has a trvialFariborz Jahanian2010-01-132-0/+28
| | | | | | constructor. Fixes radar 7537770. llvm-svn: 93358
* makeNameProper is now private!Chris Lattner2010-01-131-11/+13
| | | | llvm-svn: 93357
* fix ELF section mangling stuff for weak symbols to not useChris Lattner2010-01-131-9/+11
| | | | | | obsolete Mangler interfaces. llvm-svn: 93356
* Fix comment typoVictor Hernandez2010-01-131-1/+1
| | | | llvm-svn: 93355
* Whenever completing ordinary names for an Objective-C source, alsoDouglas Gregor2010-01-137-102/+216
| | | | | | | | | | | provide completions for @ keywords. Previously, we only provided @-completions after an @ was actually typed, which is useful but probably not the common case. Also, make sure a few Objective-C 2.0 completions only show up when Objective-C 2.0 support is enabled (the default). llvm-svn: 93354
* Fix Release-Asserts.Mike Stump2010-01-131-25/+21
| | | | llvm-svn: 93353
* tidyChris Lattner2010-01-131-4/+3
| | | | llvm-svn: 93352
* reduce duplicate mangling logic by using MCSymbol::printMangledName.Chris Lattner2010-01-131-23/+4
| | | | llvm-svn: 93351
* expose a static function as a static method on the MCSymbol class.Chris Lattner2010-01-132-4/+12
| | | | llvm-svn: 93350
* Fixed a couple of places for Thumb MOV where encoding bits are underspecified.Johnny Chen2010-01-131-4/+3
| | | | llvm-svn: 93349
* Fix for Release-Assert.Mike Stump2010-01-131-1/+1
| | | | llvm-svn: 93348
* Fix for Release-Asserts.Mike Stump2010-01-131-14/+14
| | | | llvm-svn: 93347
* Fix Release-Asserts.Mike Stump2010-01-131-44/+42
| | | | llvm-svn: 93346
* Add a BaseSubobject class to uniquely identify a base class subobject. Not ↵Anders Carlsson2010-01-131-0/+25
| | | | | | yet used. llvm-svn: 93345
* Add type source information for both kinds of typeof types.John McCall2010-01-138-28/+142
| | | | | | Patch by Enea Zaffanella. llvm-svn: 93344
* Add 'referringDecl' field to CXCursor to prepare the way to better model ↵Ted Kremenek2010-01-132-10/+11
| | | | | | declaration references from other delcarations. llvm-svn: 93343
* Fix pastoJakob Stoklund Olesen2010-01-131-1/+1
| | | | llvm-svn: 93342
* stop the CBE from using deprecated Mangler stuff.Chris Lattner2010-01-131-17/+39
| | | | llvm-svn: 93341
* Fix for Release-Asserts.Mike Stump2010-01-131-18/+17
| | | | llvm-svn: 93340
* Write function-local metadata as a metadata subblock of a funciton blockVictor Hernandez2010-01-131-4/+36
| | | | llvm-svn: 93339
* Enumerate function-local metadata (and its types and operands) only during ↵Victor Hernandez2010-01-132-20/+35
| | | | | | function-incorporation, global metadata continues to be enumerated during creation of ValueEnumerator llvm-svn: 93338
* Parse function-local metadata inside function blocksVictor Hernandez2010-01-131-0/+3
| | | | llvm-svn: 93337
* Use the GV version of getNameWithPrefix in TargetLoweringObjectFileCOFF::Chris Lattner2010-01-131-1/+1
| | | | | | SelectSectionForGlobal, unbreaking weak globals with no-name. llvm-svn: 93336
* Commit some changes I had managed to lose last night while refactoring the ↵Evan Cheng2010-01-133-2/+53
| | | | | | | | code. Avoid change use of PHI instructions because it's not legal to insert any instructions before them. This fixes PR6027. llvm-svn: 93335
* just finish MCizing FnStubInfo which cleans it up and simplifies it.Chris Lattner2010-01-131-48/+33
| | | | llvm-svn: 93334
* don't call getNameWithPrefix repeatedly and unnecesarily.Chris Lattner2010-01-131-5/+7
| | | | llvm-svn: 93333
* properly use MCSymbol to print the strings aquired from getNameWithPrefix.Chris Lattner2010-01-131-25/+64
| | | | llvm-svn: 93332
* Predefine __weak attribute when doing objective-cFariborz Jahanian2010-01-135-9/+15
| | | | | | rewriting for any target. (refixes radar 7530235). llvm-svn: 93331
* Add extra null check in clang_disposeString().Ted Kremenek2010-01-131-1/+1
| | | | llvm-svn: 93328
* Reimplement constructor declarator parsing to cope with template-idsDouglas Gregor2010-01-1315-34/+318
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that name constructors, the endless joys of out-of-line constructor definitions, and various other corner cases that the previous hack never imagined. Fixes PR5688 and tightens up semantic analysis for constructor names. Additionally, fixed a problem where we wouldn't properly enter the declarator scope of a parenthesized declarator. We were entering the scope, then leaving it when we saw the ")"; now, we re-enter the declarator scope before parsing the parameter list. Note that we are forced to perform some tentative parsing within a class (call it C) to tell the difference between C(int); // constructor and C (f)(int); // member function which is rather unfortunate. And, although it isn't necessary for correctness, we use the same tentative-parsing mechanism for out-of-line constructors to improve diagnostics in icky cases like: C::C C::f(int); // error: C::C refers to the constructor name, but // we complain nicely and recover by treating it as // a type. llvm-svn: 93322
* Fix pasto in __has_feature(cxx_lambdas) docsDouglas Gregor2010-01-131-1/+1
| | | | llvm-svn: 93320
* Tidy up comments, remove whitespace, and rename 'print-%' make debugging targetDaniel Dunbar2010-01-135-66/+59
| | | | | | to 'make-print-%' to match LLVM. llvm-svn: 93319
* Sink {config.h,ConfigureChecks}.cmake into cmake directory.Daniel Dunbar2010-01-133-3/+4
| | | | llvm-svn: 93318
OpenPOWER on IntegriCloud