summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix define inserting a comma :)Bruno Cardoso Lopes2010-08-111-1/+1
| | | | llvm-svn: 110839
* IRGen support for functions returning objc objectFariborz Jahanian2010-08-112-10/+1
| | | | | | types. Fixes PR7865. llvm-svn: 110832
* 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-111-21/+39
| | | | | | | | 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-1115-219/+142
| | | | | | | | 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-1117-60/+48
| | | | llvm-svn: 110784
* ARM: Recognize single precision float register names.Daniel Dunbar2010-08-111-1/+11
| | | | | | | - 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-111-6/+5
| | | | llvm-svn: 110774
* Improve our handling of user-defined conversions when computingDouglas Gregor2010-08-111-61/+95
| | | | | | | | | | | | | | | | | | | | | | 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-111-6/+9
| | | | | | __builtin_shufflevector with the appropriate arguments llvm-svn: 110771
* Remove 256-bit unpack built-ins and make the AVX intrinsic call llvm ↵Bruno Cardoso Lopes2010-08-111-4/+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-111-11/+13
| | | | | | __builtin_shufflevector with the appropriate arguments llvm-svn: 110766
* Fix for pr7869, inline asm mult-alt constraints.John Thompson2010-08-111-5/+3
| | | | llvm-svn: 110764
* Fix a bug in @finally emission in both the fragile and non-fragile EH schemesJohn McCall2010-08-112-5/+26
| | | | | | | | | 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-111-3/+4
| | | | | | visited a block too many times along a given path. This is to support the unreachable code analysis. llvm-svn: 110755
* SimplifyDevang Patel2010-08-101-2/+1
| | | | llvm-svn: 110716
* Slightly revised handling of mult-alt constraints, to avoid an assert, until ↵John Thompson2010-08-102-5/+25
| | | | | | we have the full fix. llvm-svn: 110706
* When initializing a static local, pop the guard-abort EH cleanup afterJohn McCall2010-08-101-0/+4
| | | | | | the variable is fully initialized. llvm-svn: 110704
* Do not use DIGlobalVariable to emit debugging information for enums.Devang Patel2010-08-101-0/+4
| | | | llvm-svn: 110697
* Fix a spurious warning when message sent to qualified-idFariborz Jahanian2010-08-101-2/+1
| | | | | | type receiver (pr7861). llvm-svn: 110696
* Turn on idempotent operations checker when using --analyze.Ted Kremenek2010-08-101-0/+1
| | | | llvm-svn: 110695
* Simplify code and add comments, in code that generate debug info for ↵Devang Patel2010-08-105-18/+15
| | | | | | constant integer globals, based on Chris's feedback. llvm-svn: 110694
* Driver/FreeBSD: Infer the right arch name in the presence of -m32,-m64, for theDaniel Dunbar2010-08-101-0/+12
| | | | | | | cases we care about. - This is eventually going to be unified outside the host specific code. llvm-svn: 110693
* Eliminate unnecessary uses of TemporaryBase in TreeTransform;Douglas Gregor2010-08-101-19/+10
| | | | | | | transforming TypeSourceInfos already gives us proper (and better) source-location information. llvm-svn: 110678
* Fixed redundant NNS loading.Abramo Bagnara2010-08-103-7/+10
| | | | llvm-svn: 110677
* Added TypeLocs to VAArgExpr node.Abramo Bagnara2010-08-105-15/+26
| | | | llvm-svn: 110666
* Added TypeLocs to TypesCompatibleExpr node.Abramo Bagnara2010-08-105-20/+36
| | | | llvm-svn: 110663
* Even if a constant's evaluated value is used, emit debug info for the ↵Devang Patel2010-08-105-1/+32
| | | | | | constant variable. llvm-svn: 110660
* Fix redefinition of typedefs of fixable variably-modified array types; shouldEli Friedman2010-08-101-8/+10
| | | | | | fix an issue compiling <windows.h>. llvm-svn: 110651
* Make replicate intrinsics use shufflevector instead of dup builtins, also ↵Bruno Cardoso Lopes2010-08-101-3/+3
| | | | | | remove the dup builtins llvm-svn: 110646
* Run the assembler instead of gcc on Linux.Rafael Espindola2010-08-104-0/+75
| | | | llvm-svn: 110635
* Implements gcc's -Wstrict-selector-match.Fariborz Jahanian2010-08-093-20/+48
| | | | | | (radar 8127244). llvm-svn: 110622
* When attempting to recover from a failed unqualified name lookup, makeDouglas Gregor2010-08-091-0/+2
| | | | | | sure to clear out the LookupResult structure after looking into each class. llvm-svn: 110615
* Instead of having a specific CXTranslationUnit_* option flag forDouglas Gregor2010-08-091-0/+1
| | | | | | | | "editing" mode, introduce a separate function clang_defaultEditingTranslationUnitOptions() that retrieves the set of options. No functionality change. llvm-svn: 110613
* - Make ObjCInterfaceDecl redeclarable, and create separate decl nodes for ↵Sebastian Redl2010-08-0915-142/+219
| | | | | | | | | | forward declarations and the definition. - Eagerly create ObjCInterfaceTypes for declarations. - The two above changes lead to a 0.5% increase in memory use and no speed regression when parsing Cocoa.h. On the other hand, now chained PCH works when there's a forward declaration in one PCH and the interface definition in another. - Add HandleInterestingDecl to ASTConsumer. PCHReader passes the "interesting" decls it finds to this function instead of HandleTopLevelDecl. The default implementation forwards to HandleTopLevelDecl, but ASTUnit's handler for example ignores them. This fixes a potential crash when lazy loading of PCH data would cause ASTUnit's "top level" declaration collection to change while being iterated. llvm-svn: 110610
* Added vecreturn attribute parsing.John Thompson2010-08-093-0/+42
| | | | llvm-svn: 110609
* Change warning about incomplete parsing of C++ default arg to error and ↵Argyrios Kyrtzidis2010-08-091-6/+2
| | | | | | provide a test case; thanks Doug! llvm-svn: 110603
* Use precompiled preambles for in-process code completion.Douglas Gregor2010-08-092-14/+107
| | | | llvm-svn: 110596
* Allow EvalBinOpNN to handle expressions of the form $a+$b if $b can be ↵Jordy Rose2010-08-091-4/+19
| | | | | | reduced to a constant. llvm-svn: 110592
* Warn if class object does not implement qualifiedFariborz Jahanian2010-08-091-4/+4
| | | | | | id's protocols. Fixes radar 8154220. llvm-svn: 110583
* Complete PCH support for ObjCPropertyImplDecl.Argyrios Kyrtzidis2010-08-092-4/+8
| | | | llvm-svn: 110570
* Revert the dump functions to send output to llvm::errs(), matching the LLVM ↵Argyrios Kyrtzidis2010-08-092-10/+14
| | | | | | | | convention; suggestion by Daniel. '-ast-print' / '-ast-dump' command line options still send output to llvm::outs(). llvm-svn: 110569
* Replace a parser assertion with a warning, suggestion by Doug.Argyrios Kyrtzidis2010-08-091-3/+8
| | | | llvm-svn: 110568
* Support ObjC implementation decls for PCH.Argyrios Kyrtzidis2010-08-093-9/+27
| | | | | | Strictly speaking, implementations don't go in headers but there's no law against it. llvm-svn: 110567
* Refactor into functions PCH reading/writing the CXXBaseOrMemberInitializers. ↵Argyrios Kyrtzidis2010-08-094-83/+98
| | | | | | No functionality change. llvm-svn: 110566
* Fix a few more typos. Amusingly, GCC made the same mistake around version 3.2.Chandler Carruth2010-08-081-4/+4
| | | | llvm-svn: 110546
* Fix some typos I made when adding alternate intrinsic names.Chandler Carruth2010-08-081-2/+2
| | | | llvm-svn: 110545
* Revert r110440, the fix for PR4897. Chris claims to have a better way.Douglas Gregor2010-08-082-50/+28
| | | | llvm-svn: 110544
* Fix a crash on template delete operators.Chandler Carruth2010-08-081-2/+8
| | | | llvm-svn: 110542
OpenPOWER on IntegriCloud