summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Fix a crash on invalid when declaring an implicit member of a class with anJohn McCall2010-08-122-1/+21
| | | | | | invalid destructor. llvm-svn: 110891
* Driver: Use the compile time linker version as the default for -mlinker-version,Daniel Dunbar2010-08-122-1/+11
| | | | | | | | if detected. - This is a hack, we really want the linker version at execution time, but we don't have any infrastructure for getting that. Yet. llvm-svn: 110886
* Emit debug info for static const class member.Devang Patel2010-08-122-2/+37
| | | | llvm-svn: 110885
* update test to reflect r110876 change.Devang Patel2010-08-121-1/+1
| | | | llvm-svn: 110884
* Don't try to implicitly declare special members of an invalid class.John McCall2010-08-111-0/+4
| | | | | | Fixes a crash in a rather large and difficult-to-reduce test case. llvm-svn: 110882
* Fix a bug where child statements could not be identified as being in a ↵Tom Care2010-08-111-1/+1
| | | | | | CFGBlock in CFGStmtMap::getBlock. llvm-svn: 110881
* Switch on PCH for C++. C++ fans all over the world rejoice.Argyrios Kyrtzidis2010-08-112-18/+2
| | | | llvm-svn: 110879
* Driver/Darwin: Pass -demangle when linking, if the linker supports it.Daniel Dunbar2010-08-112-0/+39
| | | | llvm-svn: 110873
* Driver: Add -mlinker-version=, which forwards to -target-linker-version.Daniel Dunbar2010-08-112-0/+7
| | | | llvm-svn: 110872
* Frontend: Add -target-linker-version, for specifying the version string of theDaniel Dunbar2010-08-113-1/+11
| | | | | | linker in use. llvm-svn: 110871
* Fix oversight with symbolic names in TargetInfo::validateInputConstraint.Eli Friedman2010-08-111-0/+1
| | | | llvm-svn: 110870
* -Make TokenID of IdentifierInfo read-only, remove setTokenID().Argyrios Kyrtzidis2010-08-117-10/+51
| | | | | | | | -There are 2 instances that change the TokenID for GNU libstdc++ 4.2 compatibility. To handler those cases introduce a RevertedTokenID bitfield, RevertTokenIDToIdentifier() and hasRevertedTokenIDToIdentifier() methods. Store the bitfield in PCH. llvm-svn: 110868
* Revise r110163: don't mark weak functions nounwind, because the optimizerJohn McCall2010-08-112-0/+11
| | | | | | treats that as a contract to be fulfilled by any replacements. llvm-svn: 110864
* Added locations and type source info for DeclarationName.Abramo Bagnara2010-08-1131-454/+961
| | | | llvm-svn: 110860
* Once code completion has completed, pass a "completion context" on toDouglas Gregor2010-08-1112-135/+331
| | | | | | | the code-completion consumer. The consumer can use this information to augument, filter, or display the code-completion results. llvm-svn: 110858
* Change text of diagnostics on user request.Fariborz Jahanian2010-08-112-4/+4
| | | | | | radar 7948654. llvm-svn: 110857
* Emit a stop point for delegate constructor call. This gives user a chance to ↵Devang Patel2010-08-112-0/+16
| | | | | | step into constructor body. llvm-svn: 110853
* When re-raising an exception after a cleanup, we need to call ↵John McCall2010-08-112-2/+2
| | | | | | | | | | | | | | | | | | _Unwind_Resume_or_Rethrow instead of _Unwind_Resume. With SJLJ exceptions, this is spelled "_Unwind_SjLj_Resume_or_Rethrow", not "_Unwind_SjLj_Resume", which has significantly different semantics. We should actually never be generating a call to _Unwind_SjLj_Resume directly; even if we were generating true cleanups (which we aren't because of the horrible hack), we should be calling __cxa_end_cleanup() on ARM. I haven't implemented this because there's little point as long as the HH is present. I believe this fixes <rdar://problem/8281377>. llvm-svn: 110851
* Work in progress for PR7864. Someone more familiar with ObjC++ needs to fillEli Friedman2010-08-111-3/+24
| | | | | | in the code after the "FIXME: Needs to be written". llvm-svn: 110849
* Remove rsqrtps_nr256 and sqrtps_nr256 builtins, at least until we need themBruno Cardoso Lopes2010-08-112-4/+0
| | | | llvm-svn: 110844
* Update documentation regarding use of 'class' inFariborz Jahanian2010-08-111-0/+25
| | | | | | property-dot syntax. llvm-svn: 110841
* Reintroduce the ASTConsumer/ASTUnit fix from r110610, it has nothing to do ↵Sebastian Redl2010-08-114-2/+13
| | | | | | with the breakage. llvm-svn: 110840
* Fix define inserting a comma :)Bruno Cardoso Lopes2010-08-111-1/+1
| | | | llvm-svn: 110839
* IRGen support for functions returning objc objectFariborz Jahanian2010-08-114-10/+21
| | | | | | types. Fixes PR7865. llvm-svn: 110832
* Add a (currently unused) "options" parameter toDouglas Gregor2010-08-115-5/+54
| | | | | | | | | | clang_reparseTranslationUnit(), along with a function to retrieve the default recommended reparsing options for a translation unit. Also, add the CXTranslationUnit_CacheCompletionResults flag, which is also currently unused. llvm-svn: 110811
* Remove wpa 'example', it isn't being maintained.Daniel Dunbar2010-08-115-199/+1
| | | | llvm-svn: 110809
* Random temporary string cleanup.Benjamin Kramer2010-08-117-12/+10
| | | | llvm-svn: 110807
* If name lookup finds different type declarations in different scopesDouglas Gregor2010-08-113-21/+55
| | | | | | | | that actually refer to the same underlying type, it is not an ambiguity; add uniquing support based on the canonical type of type declarations. Fixes <rdar://problem/8296180>. llvm-svn: 110806
* Fix a thinko in the creation of temporary files for the precompiled preambleDouglas Gregor2010-08-111-1/+2
| | | | llvm-svn: 110804
* Speculatively revert r110610 " Make ObjCInterfaceDecl redeclarable,Douglas Gregor2010-08-1120-274/+148
| | | | | | | | and create separate decl nodes for forward declarations and the definition," which appears to be causing significant Objective-C breakage. llvm-svn: 110803
* MemRegion can refer to ASTContext without external help.Zhongxing Xu2010-08-1118-85/+72
| | | | llvm-svn: 110784
* tests: Add a missing -Xclang.Daniel Dunbar2010-08-111-1/+1
| | | | llvm-svn: 110776
* ARM: Recognize single precision float register names.Daniel Dunbar2010-08-112-1/+25
| | | | | | | - We don't recognize double or NEON register names yet -- we don't have the infrastructure to generate the right clobbers for them. llvm-svn: 110775
* ARM: Swap which registers we consider real / aliases to match LLVM and llvm-gcc.Daniel Dunbar2010-08-112-6/+13
| | | | llvm-svn: 110774
* Improve our handling of user-defined conversions when computingDouglas Gregor2010-08-115-79/+150
| | | | | | | | | | | | | | | | | | | | | | implicit conversion sequences. In particular, model the "standard conversion" from a class to its own type (or a base type) directly as a standard conversion in the normal path *without* trying to determine if there is a valid copy constructor. This appears to match the intent of C++ [over.best.ics]p6 and more closely matches GCC and EDG. As part of this, model non-lvalue reference initialization via user-defined conversion in overloading the same way we handle it in InitializationSequence, separating the "general user-defined conversion" and "conversion to compatible class type" cases. The churn in the overload-call-copycon.cpp test case is because the test case was originally wrong; it assumed that we should do more checking for copy constructors that we actually should, which affected overload resolution. Fixes PR7055. Bootstrapped okay. llvm-svn: 110773
* Remove 256-bit cast built-ins and make the AVX intrinsic call llvm ↵Bruno Cardoso Lopes2010-08-113-18/+9
| | | | | | __builtin_shufflevector with the appropriate arguments llvm-svn: 110771
* Make this test a little less dependent on exact optimizer results.John McCall2010-08-111-6/+6
| | | | llvm-svn: 110770
* Remove 256-bit unpack built-ins and make the AVX intrinsic call llvm ↵Bruno Cardoso Lopes2010-08-113-12/+4
| | | | | | __builtin_shufflevector with the appropriate arguments llvm-svn: 110768
* Remove 256-bit shuffle built-ins and make the AVX intrinsic call llvm ↵Bruno Cardoso Lopes2010-08-113-15/+13
| | | | | | __builtin_shufflevector with the appropriate arguments llvm-svn: 110766
* Fix for pr7869, inline asm mult-alt constraints.John Thompson2010-08-112-5/+48
| | | | llvm-svn: 110764
* Fix a bug in @finally emission in both the fragile and non-fragile EH schemesJohn McCall2010-08-113-5/+77
| | | | | | | | | where we weren't accounting for the possibility that a @finally block might have internal cleanups and therefore might write to the cleanup destination slot. Fixes <rdar://problem/8293901>. llvm-svn: 110760
* Have GRCoreEngine record the blocks where analysis was aborted because we ↵Ted Kremenek2010-08-112-12/+22
| | | | | | visited a block too many times along a given path. This is to support the unreachable code analysis. llvm-svn: 110755
* Add test case for <rdar://problem/8288645>. While this is fixed in trunk, ↵Ted Kremenek2010-08-101-0/+8
| | | | | | | | we previously were getting the following assertion failure not too long ago: Assertion failed: (getContainingDC(DC) == CurContext && "The next DeclContext should be lexically contained in the current one.") llvm-svn: 110740
* Something's wrong with this test on other platforms. I'll probably need to ↵John Thompson2010-08-101-23/+0
| | | | | | simplify it later. For now revert. llvm-svn: 110738
* Fix test to not depend on objc.h header.Fariborz Jahanian2010-08-101-2/+0
| | | | llvm-svn: 110729
* SimplifyDevang Patel2010-08-101-2/+1
| | | | llvm-svn: 110716
* Test case for llvm r110712.Devang Patel2010-08-101-0/+8
| | | | llvm-svn: 110713
* tests: Avoid unnecessary redirection.Daniel Dunbar2010-08-101-2/+2
| | | | llvm-svn: 110709
* tests: Tests which include system headers must use the driver, not -cc1.Daniel Dunbar2010-08-101-3/+3
| | | | llvm-svn: 110708
* Slightly revised handling of mult-alt constraints, to avoid an assert, until ↵John Thompson2010-08-103-5/+48
| | | | | | we have the full fix. llvm-svn: 110706
OpenPOWER on IntegriCloud