summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Instead of r74522, use another approach to fix xfail_regionstore_wine_crash.c.Zhongxing Xu2009-06-302-3/+11
| | | | | | | Mark the super region of the binding of block level expr in the Environment as live. llvm-svn: 74525
* When retrieving element region, if its super region has binding, returnZhongxing Xu2009-06-301-5/+24
| | | | | | | | | | | unknown for it. Mark the super region of a live region as live, if the live region is pointed to by a live pointer variable. These fixes xfail_regionstore_wine_crash.c. llvm-svn: 74524
* Block level expr should be visited. Otherwise variables in init expr ofZhongxing Xu2009-06-301-1/+3
| | | | | | | | | | DeclStmt would be dead before the DeclStmt. For example: int x = 0; int y = x; 'x' would be dead before 'int y = x'. llvm-svn: 74522
* add utility method.Zhongxing Xu2009-06-301-0/+7
| | | | llvm-svn: 74521
* remove dead code.Zhongxing Xu2009-06-302-5/+0
| | | | llvm-svn: 74517
* We do not require the super region of element region be typed. So do notZhongxing Xu2009-06-301-3/+2
| | | | | | create TypedViewRegion for it. llvm-svn: 74516
* Implement PR4175, catching some questionable comparisons. Patch byChris Lattner2009-06-301-2/+19
| | | | | | David Majnemer! llvm-svn: 74513
* De-ASTContext-ify DeclContext.Argyrios Kyrtzidis2009-06-3043-569/+475
| | | | | | | Remove ASTContext parameter from DeclContext's methods. This change cascaded down to other Decl's methods and changes to call sites started "escalating". Timings using pre-tokenized "cocoa.h" showed only a ~1% increase in time run between and after this commit. llvm-svn: 74506
* Remove the ASTContext parameter from the getBody() methods of Decl and ↵Argyrios Kyrtzidis2009-06-3022-42/+40
| | | | | | | | subclasses. Timings showed no significant difference before and after the commit. llvm-svn: 74504
* Remove the ASTContext parameter from the printing related methods of Decl.Argyrios Kyrtzidis2009-06-304-22/+18
| | | | llvm-svn: 74503
* Decl::getTranslationUnitDecl() should return itself when the Decl is a ↵Argyrios Kyrtzidis2009-06-301-0/+3
| | | | | | TranslationUnitDecl. llvm-svn: 74502
* Remove the ASTContext parameter from the attribute-related methods of Decl.Argyrios Kyrtzidis2009-06-3031-217/+209
| | | | | | | | | The implementations of these methods can Use Decl::getASTContext() to get the ASTContext. This commit touches a lot of files since call sites for these methods are everywhere. I used pre-tokenized "carbon.h" and "cocoa.h" headers to do some timings, and there was no real time difference between before the commit and after it. llvm-svn: 74501
* Key decisions about 'bool' vs '_Bool' to be based on a new flag in langoptions.Chris Lattner2009-06-3018-66/+91
| | | | | | | | | | | | This is simple enough, but then I thought it would be nice to make PrintingPolicy get a LangOptions so that various things can key off "bool" and "C++" independently. This spiraled out of control. There are many fixme's, but I think things are slightly better than they were before. One thing that can be improved: CFG should probably have an ASTContext pointer in it, which would simplify its clients. llvm-svn: 74493
* Take care of Chris's comments.Fariborz Jahanian2009-06-301-14/+15
| | | | llvm-svn: 74486
* Make an error message more clear.Anders Carlsson2009-06-301-1/+1
| | | | llvm-svn: 74481
* A more detailed diagnosis of ill-formed ctor-initializerFariborz Jahanian2009-06-302-12/+21
| | | | | | list. llvm-svn: 74480
* Use true/false instead of 1/0.Daniel Dunbar2009-06-291-4/+4
| | | | llvm-svn: 74479
* Improvements to decltype. We now don't crash anymore when the expr is an ↵Anders Carlsson2009-06-293-3/+23
| | | | | | overloaded function decl. llvm-svn: 74472
* Don't define __KPRINTF_ATTRIBUTE__ unconditionally on OpenBSD.Daniel Dunbar2009-06-291-1/+0
| | | | llvm-svn: 74467
* Improve code generation for function template specializations:Douglas Gregor2009-06-294-8/+66
| | | | | | | | | | | | | | | | - Track implicit instantiations vs. the not-yet-supported explicit specializations - Give implicit instantiations of function templates (and member functions of class templates) linkonce_odr linkage. - Improve name mangling for function template specializations, including the template arguments of the instantiation and the return type of the function. Note that our name-mangling is improved, but not correct: we still don't mangle substitutions, although the manglings we produce can be demangled. llvm-svn: 74466
* Diagnose multiple initialzation of data-member/base Fariborz Jahanian2009-06-291-0/+18
| | | | | | in the ctor-initializer list. More to come. llvm-svn: 74465
* Remove some dead codeAnders Carlsson2009-06-291-3/+0
| | | | llvm-svn: 74460
* Keep track of function template specializations, to eliminateDouglas Gregor2009-06-296-17/+93
| | | | | | | redundant, implicit instantiations of function templates and provide a place where we can hang function template specializations. llvm-svn: 74454
* OpenBSD support.Daniel Dunbar2009-06-297-0/+288
| | | | | | - Patch by Jonathan Gray! llvm-svn: 74453
* -Keep a reference to the ASTContext inside the TranslationUnitDecl.Argyrios Kyrtzidis2009-06-292-1/+17
| | | | | | | | -Introduce Decl::getASTContext() which returns the reference from the TranslationUnitDecl that it is contained in. The general idea is that Decls can point to their own ASTContext so that it is no longer required to "manually" keep track and make sure that you pass the correct ASTContext to Decls' methods, e.g. methods like Decl::getAttrs should eventually not require a ASTContext parameter. llvm-svn: 74434
* Fix the FloatingLiteral API to take the isexact flag by value instead ofChris Lattner2009-06-292-4/+3
| | | | | | by pointer. llvm-svn: 74432
* Move FunctionDecl::TemplateSpecializationInfo out into its own class,Douglas Gregor2009-06-292-5/+35
| | | | | | FunctionTemplateSpecializationInfo, in DeclTemplate.h. No functionality change. llvm-svn: 74431
* Remove ASTContext::getObjCQualifiedIdType().Steve Naroff2009-06-292-11/+4
| | | | | | Convert clients to use ASTContext::getObjCObjectPointerType(). llvm-svn: 74424
* Invalidate the alloca region by setting its default value to conjured symbol.Zhongxing Xu2009-06-291-2/+11
| | | | llvm-svn: 74419
* Make the StackProtector bitfield use enums instead of obscure numbers.Bill Wendling2009-06-283-5/+5
| | | | llvm-svn: 74414
* Move the check for vprintf* functions inside of SemaCheckStringLiteral. ↵Anders Carlsson2009-06-281-25/+22
| | | | | | Fixes PR4470. llvm-svn: 74413
* Fix incorrect AST's being produced, noticed by Eli.Nate Begeman2009-06-281-10/+4
| | | | | | The issue this was working around is no longer present in TOT clang. llvm-svn: 74411
* Adjust retrieve handler priority. If a field is of array type, it should be Zhongxing Xu2009-06-281-6/+6
| | | | | | handled by RetrieveArray(). llvm-svn: 74409
* Invalidate a field of struct type by setting its default value to conjured Zhongxing Xu2009-06-281-4/+15
| | | | | | symbol. llvm-svn: 74408
* Do not crash on binding concrete integer location.Zhongxing Xu2009-06-282-0/+6
| | | | llvm-svn: 74407
* Simplify some code. As in region store, we always expect the location is aZhongxing Xu2009-06-281-41/+34
| | | | | | memregion. llvm-svn: 74406
* Add stack protector support to clang. This generates the 'ssp' and 'sspreq'Bill Wendling2009-06-285-4/+58
| | | | | | | | function attributes. There are predefined macros that are defined when stack protectors are used: __SSP__=1 with -fstack-protector and __SSP_ALL__=2 with -fstack-protector-all. llvm-svn: 74405
* OpenCL 1.0 support: Nate Begeman2009-06-281-29/+46
| | | | | | | | Handle rules for ExtVector + ExtVector and ExtVector + Scalar operations. Fix problem Eli noticed where we were allowing pointer types to be splatted to vector elements. llvm-svn: 74404
* Implement feedback from Eli re: the purpose of lax vector conversionsNate Begeman2009-06-271-13/+2
| | | | llvm-svn: 74397
* Improve support for overloaded operator templates.Douglas Gregor2009-06-274-26/+45
| | | | llvm-svn: 74390
* Fix the parser error hanlding for __builtin_offsetof to actually print Eli Friedman2009-06-271-6/+7
| | | | | | out an error for a malformed __builtin_offsetof. llvm-svn: 74388
* Renamed MarcDestructorReferenced -> MarkDestructorReferencedFariborz Jahanian2009-06-274-6/+6
| | | | llvm-svn: 74386
* Fix screwup with my previous patch which broke tests. (The patch is Eli Friedman2009-06-271-1/+1
| | | | | | | making sure we return true when annotating a function template with explicit template arguments, but not when we don't annotate anything.) llvm-svn: 74383
* Fix a crash with constructs like x<false>() in C++. No testcase because Eli Friedman2009-06-271-1/+1
| | | | | | it doesn't actually work yet; we just error out a bit more gracefully. llvm-svn: 74381
* Fix a bogus error overloading an operator where the only class Eli Friedman2009-06-271-2/+3
| | | | | | parameter has a dependent type. llvm-svn: 74380
* Implement support for the format_arg attribute. Fixes PR4442.Anders Carlsson2009-06-271-0/+21
| | | | llvm-svn: 74369
* Make it possible for using decls to point to operators. Fixes PR4441.Anders Carlsson2009-06-274-11/+35
| | | | llvm-svn: 74362
* Remove the last 'GetXXX' methods from GRStateManager.Ted Kremenek2009-06-271-0/+31
| | | | llvm-svn: 74361
* Patch to mark destructors when they are used.Fariborz Jahanian2009-06-265-7/+84
| | | | llvm-svn: 74359
* Fix test.Anders Carlsson2009-06-261-0/+7
| | | | llvm-svn: 74358
OpenPOWER on IntegriCloud