summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Turn StripPointerCast() into a methodAnton Korobeynikov2008-05-079-45/+42
| | | | llvm-svn: 50836
* Begin handling union bitfields.Devang Patel2008-05-072-3/+13
| | | | | | Note, this is just beginning. llvm-svn: 50835
* Use Doxygen-style comments.Mikhail Glushenkov2008-05-078-110/+145
| | | | llvm-svn: 50833
* Fix <rdar://problem/5887874> clang ObjC rewriter: Use a different name for ↵Steve Naroff2008-05-071-3/+3
| | | | | | 'offsetof' macro llvm-svn: 50832
* Added support for "drain".Ted Kremenek2008-05-071-0/+4
| | | | llvm-svn: 50831
* Synthesized getter/setter method declarations need not haveFariborz Jahanian2008-05-073-3/+13
| | | | | | | an implementation. This fixes couple of failing prperty tests caused by my previous patch. llvm-svn: 50830
* Expand the CF retain checker to allow the Create/Get rule to apply to anyTed Kremenek2008-05-072-52/+70
| | | | | | | | | | | | function that returns a CFxxxRef, not just functions whose name begins with CF. This implements <rdar://problem/5917879>. Added test case for this feature. Updated calls to CStrInCStrNoCase to swap their arguments, per compatibility with strcasestr. llvm-svn: 50829
* Make the interface of CStrInCStrNoCase be the same as strcasestr.Ted Kremenek2008-05-071-6/+5
| | | | llvm-svn: 50828
* Add a new LibCallAliasAnalysis pass, which is parameterizedChris Lattner2008-05-073-0/+179
| | | | | | | | | | by an instance of LibCallInfo to provide mod/ref info of standard library functions. This is powerful enough to say that 'sqrt' is readonly except that it modifies errno, or that "printf doesn't store to memory unless the %n constraint is present" etc. llvm-svn: 50827
* Fix some serious logical errors in CStrInCStrNoCase pointed out by Bill.Ted Kremenek2008-05-071-5/+8
| | | | llvm-svn: 50826
* Output correct exception handling and frame infoDuncan Sands2008-05-074-61/+49
| | | | | | | | | | | | | | | | | | on x86-64 linux. This causes no regressions on 32 bit linux and 32 bit ppc. More tests pass on 64 bit ppc with no regressions. I didn't turn on eh on 64 bit linux because the intrinsics needed to compile the eh runtime aren't done yet. But if you turn it on and link with the mainline runtime then eh seems to work fine on x86-64 linux with this patch. Thanks to Dale for testing. The main point of the patch is that if you output that some object is encoded using 4 bytes you had better not output 8 bytes for it: the patch makes everything consistent. llvm-svn: 50825
* Flip order of arguments to CStrInStrNoCase.Ted Kremenek2008-05-071-2/+2
| | | | llvm-svn: 50824
* Guard for empty strings in CStrInCStrNoCase.Ted Kremenek2008-05-071-2/+2
| | | | llvm-svn: 50823
* Use llvm::CStrInCStrNoCase instead of strcasestr, since the latter is not ↵Ted Kremenek2008-05-071-2/+4
| | | | | | | | portable. Correctly check if the result of CStrInCStrNoCase is NULL to generate summaries; before we were inverting the condition. llvm-svn: 50822
* Added CStrInCStrNoCase, a portable implementation of strcasestr.Ted Kremenek2008-05-071-0/+24
| | | | llvm-svn: 50821
* Add a new interface for describing the behavior of library calls. ThisChris Lattner2008-05-072-0/+231
| | | | | | | | | Currently is sufficient to describe mod/ref behavior but will hopefully eventually be extended for other purposes. This isn't used by anything yet. llvm-svn: 50820
* This patch introduces declaration of getter methods for ObjC2'sFariborz Jahanian2008-05-075-16/+71
| | | | | | | properties. Couple of property tests will fail with this patch. Will fix them next. llvm-svn: 50818
* copy-paste: NS types are not typedefs.Ted Kremenek2008-05-071-7/+5
| | | | llvm-svn: 50817
* Fixup InitListExpr::child_begin/end. Thanks to Ted for catching the regression.Steve Naroff2008-05-071-2/+4
| | | | llvm-svn: 50816
* Fix off-by-one error.Steve Naroff2008-05-071-1/+1
| | | | llvm-svn: 50815
* Typo.Nick Lewycky2008-05-071-1/+1
| | | | llvm-svn: 50805
* Do not treat **instance** methods "copyWithZone:" and "mutableCopyWithZone:" ↵Ted Kremenek2008-05-071-18/+1
| | | | | | from NSObject as allocators. llvm-svn: 50802
* Diagnose attempts to use C++ default arguments outside of a function declarationDouglas Gregor2008-05-076-9/+57
| | | | llvm-svn: 50799
* Be less promiscuous with generating summaries for "new", "copy", "create".Ted Kremenek2008-05-071-3/+3
| | | | llvm-svn: 50798
* Added auto-summary generation for createXXX, copyXXX, newXXX methods.Ted Kremenek2008-05-071-16/+12
| | | | llvm-svn: 50795
* Yet another nasty spiller bug.Evan Cheng2008-05-072-14/+56
| | | | | | | | | | %ecx = op store %cl<kill>, (addr) (addr) = op %al It's not safe to unfold the last operand and eliminate store even though %cl is marked kill. It's a sub-register use which means one of its super-register(s) may be used below. llvm-svn: 50794
* Fix a bug in the ComputeMaskedBits logic for multiply.Dan Gohman2008-05-073-4/+14
| | | | llvm-svn: 50793
* Fix <rdar://problem/5908598> clang ObjC rewriter: typo in #pragma at endSteve Naroff2008-05-071-1/+1
| | | | llvm-svn: 50790
* Make the use of the "noinline" attribute conditional on using GCC.Bill Wendling2008-05-071-0/+4
| | | | llvm-svn: 50789
* Disable loop deletion until the release branch.Owen Anderson2008-05-061-1/+0
| | | | llvm-svn: 50787
* Removing.Bill Wendling2008-05-061-25/+0
| | | | llvm-svn: 50786
* Fix a few glitches in scan-build with automatically generating class names ↵Ted Kremenek2008-05-061-4/+3
| | | | | | from bug types. llvm-svn: 50784
* Improve HTMLDiagnostics by understanding the "Below" hint.Ted Kremenek2008-05-061-7/+30
| | | | llvm-svn: 50783
* Workaround for a compiler bug (see <rdar://problem/5852746>). Once that bug isBill Wendling2008-05-061-1/+3
| | | | | | fixed, revert this patch. llvm-svn: 50782
* Fix <rdar://problem/5879237> clang objc rewriter: ivars not accessible in ↵Steve Naroff2008-05-061-3/+29
| | | | | | structure generated for class llvm-svn: 50781
* Update a couple VC++ project files.Steve Naroff2008-05-062-1/+31
| | | | llvm-svn: 50780
* Print ObjC methods of ObjC classes.Fariborz Jahanian2008-05-061-0/+8
| | | | llvm-svn: 50779
* Use target triple in tests, not 'realign-stack=0' option. Per request.Anton Korobeynikov2008-05-064-5/+5
| | | | llvm-svn: 50778
* Don't report leaks for autoreleased objects.Ted Kremenek2008-05-062-63/+23
| | | | llvm-svn: 50777
* If weak GlobalVariable was bitcast'ed to different type during linkingAnton Korobeynikov2008-05-061-1/+1
| | | | | | we will need to strip all casts for intializer lookup. llvm-svn: 50776
* Make StripPointerCast a common function (should we mak it method of Value ↵Anton Korobeynikov2008-05-069-43/+42
| | | | | | instead?) llvm-svn: 50775
* Fix <rdar://problem/5888515> clang ObjC rewriter: Use objc.h for ↵Steve Naroff2008-05-061-15/+17
| | | | | | declarations instead of putting them in the preamble? llvm-svn: 50774
* Added "DisplayHint" to PathDiagnosticPiece to provide a hint for theTed Kremenek2008-05-061-8/+19
| | | | | | PathDiagnosticClient of where to display a string (beyond just the SourceLocation). llvm-svn: 50773
* More comments.Ted Kremenek2008-05-061-73/+72
| | | | | | "#if 0" out some assumptions when auto-generating method summaries. llvm-svn: 50772
* Testcase for r50770.Owen Anderson2008-05-061-0/+109
| | | | llvm-svn: 50771
* We need to update PHIs containing the exiting block, not the exit block. We ↵Owen Anderson2008-05-061-3/+8
| | | | | | really should come up with better names for these. llvm-svn: 50770
* Fix PR2101 - Codegen crash during bitfield initialization.Devang Patel2008-05-062-3/+33
| | | | llvm-svn: 50769
* Improve documentation.Gordon Henriksen2008-05-061-1/+2
| | | | llvm-svn: 50768
* Fix <rdar://problem/5881225> clang ObjC Rewriter: Protocol structure defined ↵Steve Naroff2008-05-061-1/+11
| | | | | | twice when two interfaces use it in same file llvm-svn: 50767
* Change from llvm::SmallSet<std::string> to llvm::StringMap<char>.Mikhail Glushenkov2008-05-063-6/+18
| | | | llvm-svn: 50766
OpenPOWER on IntegriCloud