]>
granicus.if.org Git - clang/log
Devang Patel [Thu, 12 Aug 2010 17:42:42 +0000 (17:42 +0000)]
Make this test darwin only.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110936
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Thu, 12 Aug 2010 17:04:55 +0000 (17:04 +0000)]
Don't emit end-of-file diagnostics like "unterminated conditional" or
"unterminated string" when we're performing code completion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110933
91177308 -0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 12 Aug 2010 15:19:46 +0000 (15:19 +0000)]
Temporarily disable this failing test, until it can be properly
investigated.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110917
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Thu, 12 Aug 2010 12:31:25 +0000 (12:31 +0000)]
Add a comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110913
91177308 -0d34-0410-b5e6-
96231b3b80d8
Abramo Bagnara [Thu, 12 Aug 2010 11:46:03 +0000 (11:46 +0000)]
Added locations and type source info for DeclarationName inside UsingDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110912
91177308 -0d34-0410-b5e6-
96231b3b80d8
Jordy Rose [Thu, 12 Aug 2010 08:54:03 +0000 (08:54 +0000)]
Remove OwnershipAttr::Kind, since it's essentially redundant with attr::Kind the way it's being used. Also fix isa<OwnershipAttr> support, break more-than-80-char lines, and other miscellaneous ownership attr cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110908
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Thu, 12 Aug 2010 07:31:42 +0000 (07:31 +0000)]
Test for rdar://problem/
8073696 .
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110907
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Thu, 12 Aug 2010 07:09:11 +0000 (07:09 +0000)]
Handle the obvious case for diagnosing redeclarations of extern "C" functions.
Fixes PR7859.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110906
91177308 -0d34-0410-b5e6-
96231b3b80d8
Jordy Rose [Thu, 12 Aug 2010 04:05:07 +0000 (04:05 +0000)]
Actually use reduced set of checkers in EvalAssume.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110904
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 12 Aug 2010 02:53:12 +0000 (02:53 +0000)]
Frontend: Move the bulk of the cc1_main() processing into
ExecuteCompilerInvocation in libFrontend.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110903
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 12 Aug 2010 02:53:07 +0000 (02:53 +0000)]
clang -cc1: Move real diagnostics client initialization to earlier.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110902
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Thu, 12 Aug 2010 02:40:37 +0000 (02:40 +0000)]
Bail out of MaybeBindToTemporary if the record type is invalid. Test case
is 8.5MB, sorry.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110901
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Thu, 12 Aug 2010 02:17:33 +0000 (02:17 +0000)]
Implement RTTI generation for Objective C types. Fixes PR7864.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110900
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Thu, 12 Aug 2010 00:57:17 +0000 (00:57 +0000)]
Fix a crash on invalid when declaring an implicit member of a class with an
invalid destructor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110891
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 12 Aug 2010 00:05:12 +0000 (00:05 +0000)]
Driver: Use the compile time linker version as the default for -mlinker-version,
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110886
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 12 Aug 2010 00:02:44 +0000 (00:02 +0000)]
Emit debug info for static const class member.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110885
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 12 Aug 2010 00:00:41 +0000 (00:00 +0000)]
update test to reflect r110876 change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110884
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Wed, 11 Aug 2010 23:52:36 +0000 (23:52 +0000)]
Don't try to implicitly declare special members of an invalid class.
Fixes a crash in a rather large and difficult-to-reduce test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110882
91177308 -0d34-0410-b5e6-
96231b3b80d8
Tom Care [Wed, 11 Aug 2010 23:36:58 +0000 (23:36 +0000)]
Fix a bug where child statements could not be identified as being in a CFGBlock in CFGStmtMap::getBlock.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110881
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Wed, 11 Aug 2010 23:27:58 +0000 (23:27 +0000)]
Switch on PCH for C++. C++ fans all over the world rejoice.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110879
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 11 Aug 2010 23:07:50 +0000 (23:07 +0000)]
Driver/Darwin: Pass -demangle when linking, if the linker supports it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110873
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 11 Aug 2010 23:07:47 +0000 (23:07 +0000)]
Driver: Add -mlinker-version=, which forwards to -target-linker-version.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110872
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 11 Aug 2010 23:07:42 +0000 (23:07 +0000)]
Frontend: Add -target-linker-version, for specifying the version string of the
linker in use.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110871
91177308 -0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Wed, 11 Aug 2010 23:03:37 +0000 (23:03 +0000)]
Fix oversight with symbolic names in TargetInfo::validateInputConstraint.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110870
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Wed, 11 Aug 2010 22:55:12 +0000 (22:55 +0000)]
-Make TokenID of IdentifierInfo read-only, remove setTokenID().
-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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110868
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Wed, 11 Aug 2010 22:38:33 +0000 (22:38 +0000)]
Revise r110163: don't mark weak functions nounwind, because the optimizer
treats that as a contract to be fulfilled by any replacements.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110864
91177308 -0d34-0410-b5e6-
96231b3b80d8
Abramo Bagnara [Wed, 11 Aug 2010 22:01:17 +0000 (22:01 +0000)]
Added locations and type source info for DeclarationName.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110860
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 11 Aug 2010 21:23:17 +0000 (21:23 +0000)]
Once code completion has completed, pass a "completion context" on to
the code-completion consumer. The consumer can use this information to
augument, filter, or display the code-completion results.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110858
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Wed, 11 Aug 2010 21:22:15 +0000 (21:22 +0000)]
Change text of diagnostics on user request.
radar
7948654 .
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110857
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 11 Aug 2010 21:04:37 +0000 (21:04 +0000)]
Emit a stop point for delegate constructor call. This gives user a chance to step into constructor body.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110853
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Wed, 11 Aug 2010 20:59:53 +0000 (20:59 +0000)]
When re-raising an exception after a cleanup, we need to call _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 >.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110851
91177308 -0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Wed, 11 Aug 2010 20:41:51 +0000 (20:41 +0000)]
Work in progress for PR7864. Someone more familiar with ObjC++ needs to fill
in the code after the "FIXME: Needs to be written".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110849
91177308 -0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 11 Aug 2010 19:18:36 +0000 (19:18 +0000)]
Remove rsqrtps_nr256 and sqrtps_nr256 builtins, at least until we need them
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110844
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Wed, 11 Aug 2010 18:57:26 +0000 (18:57 +0000)]
Update documentation regarding use of 'class' in
property-dot syntax.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110841
91177308 -0d34-0410-b5e6-
96231b3b80d8
Sebastian Redl [Wed, 11 Aug 2010 18:52:41 +0000 (18:52 +0000)]
Reintroduce the ASTConsumer/ASTUnit fix from r110610, it has nothing to do with the breakage.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110840
91177308 -0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 11 Aug 2010 18:45:43 +0000 (18:45 +0000)]
Fix define inserting a comma :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110839
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Wed, 11 Aug 2010 17:37:35 +0000 (17:37 +0000)]
IRGen support for functions returning objc object
types. Fixes PR7865.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110832
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 11 Aug 2010 15:58:42 +0000 (15:58 +0000)]
Add a (currently unused) "options" parameter to
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110811
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 11 Aug 2010 15:21:41 +0000 (15:21 +0000)]
Remove wpa 'example', it isn't being maintained.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110809
91177308 -0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 11 Aug 2010 14:47:12 +0000 (14:47 +0000)]
Random temporary string cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110807
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 11 Aug 2010 14:45:53 +0000 (14:45 +0000)]
If name lookup finds different type declarations in different scopes
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 >.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110806
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 11 Aug 2010 13:06:56 +0000 (13:06 +0000)]
Fix a thinko in the creation of temporary files for the precompiled preamble
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110804
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 11 Aug 2010 12:19:30 +0000 (12:19 +0000)]
Speculatively revert r110610 " Make ObjCInterfaceDecl redeclarable,
and create separate decl nodes for forward declarations and the
definition," which appears to be causing significant Objective-C
breakage.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110803
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Wed, 11 Aug 2010 06:10:55 +0000 (06:10 +0000)]
MemRegion can refer to ASTContext without external help.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110784
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 11 Aug 2010 02:32:03 +0000 (02:32 +0000)]
tests: Add a missing -Xclang.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110776
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 11 Aug 2010 02:17:20 +0000 (02:17 +0000)]
ARM: Recognize single precision float register names.
- We don't recognize double or NEON register names yet -- we don't have the
infrastructure to generate the right clobbers for them.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110775
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 11 Aug 2010 02:17:11 +0000 (02:17 +0000)]
ARM: Swap which registers we consider real / aliases to match LLVM and llvm-gcc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110774
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 11 Aug 2010 02:15:33 +0000 (02:15 +0000)]
Improve our handling of user-defined conversions when computing
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110773
91177308 -0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 11 Aug 2010 02:14:38 +0000 (02:14 +0000)]
Remove 256-bit cast built-ins and make the AVX intrinsic call llvm __builtin_shufflevector with the appropriate arguments
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110771
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Wed, 11 Aug 2010 02:06:44 +0000 (02:06 +0000)]
Make this test a little less dependent on exact optimizer results.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110770
91177308 -0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 11 Aug 2010 01:43:24 +0000 (01:43 +0000)]
Remove 256-bit unpack built-ins and make the AVX intrinsic call llvm __builtin_shufflevector with the appropriate arguments
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110768
91177308 -0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 11 Aug 2010 01:17:34 +0000 (01:17 +0000)]
Remove 256-bit shuffle built-ins and make the AVX intrinsic call llvm __builtin_shufflevector with the appropriate arguments
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110766
91177308 -0d34-0410-b5e6-
96231b3b80d8
John Thompson [Wed, 11 Aug 2010 00:58:20 +0000 (00:58 +0000)]
Fix for pr7869, inline asm mult-alt constraints.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110764
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Wed, 11 Aug 2010 00:16:14 +0000 (00:16 +0000)]
Fix a bug in @finally emission in both the fragile and non-fragile EH schemes
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 >.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110760
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 11 Aug 2010 00:03:02 +0000 (00:03 +0000)]
Have GRCoreEngine record the blocks where analysis was aborted because we visited a block too many times along a given path. This is to support the unreachable code analysis.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110755
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 10 Aug 2010 22:30:29 +0000 (22:30 +0000)]
Add test case for <rdar://problem/
8288645 >. While this is fixed in trunk, 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.")
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110740
91177308 -0d34-0410-b5e6-
96231b3b80d8
John Thompson [Tue, 10 Aug 2010 22:04:00 +0000 (22:04 +0000)]
Something's wrong with this test on other platforms. I'll probably need to simplify it later. For now revert.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110738
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 10 Aug 2010 20:59:58 +0000 (20:59 +0000)]
Fix test to not depend on objc.h header.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110729
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 10 Aug 2010 20:16:57 +0000 (20:16 +0000)]
Simplify
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110716
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 10 Aug 2010 20:01:51 +0000 (20:01 +0000)]
Test case for llvm r110712.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110713
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 10 Aug 2010 19:33:56 +0000 (19:33 +0000)]
tests: Avoid unnecessary redirection.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110709
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 10 Aug 2010 19:32:44 +0000 (19:32 +0000)]
tests: Tests which include system headers must use the driver, not -cc1.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110708
91177308 -0d34-0410-b5e6-
96231b3b80d8
John Thompson [Tue, 10 Aug 2010 19:20:14 +0000 (19:20 +0000)]
Slightly revised handling of mult-alt constraints, to avoid an assert, until we have the full fix.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110706
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Tue, 10 Aug 2010 18:51:44 +0000 (18:51 +0000)]
When initializing a static local, pop the guard-abort EH cleanup after
the variable is fully initialized.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110704
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 10 Aug 2010 18:32:37 +0000 (18:32 +0000)]
an objective-c++ test for -Wstrict-selector-match
(radar
8127244 ).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110702
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 10 Aug 2010 18:27:15 +0000 (18:27 +0000)]
Do not use DIGlobalVariable to emit debugging information for enums.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110697
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 10 Aug 2010 18:10:50 +0000 (18:10 +0000)]
Fix a spurious warning when message sent to qualified-id
type receiver (pr7861).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110696
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 10 Aug 2010 18:03:13 +0000 (18:03 +0000)]
Turn on idempotent operations checker when using --analyze.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110695
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 10 Aug 2010 17:53:33 +0000 (17:53 +0000)]
Simplify code and add comments, in code that generate debug info for constant integer globals, based on Chris's feedback.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110694
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 10 Aug 2010 17:39:05 +0000 (17:39 +0000)]
Driver/FreeBSD: Infer the right arch name in the presence of -m32,-m64, for the
cases we care about.
- This is eventually going to be unified outside the host specific code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110693
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 10 Aug 2010 15:02:34 +0000 (15:02 +0000)]
Teach the libclang cursor visitor to walk into the type information
provided by __builtin_types_compatible_p and __builtin_va_arg
expressions, now that Abramo has added proper type-source information
to those expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110681
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 10 Aug 2010 14:27:00 +0000 (14:27 +0000)]
Eliminate unnecessary uses of TemporaryBase in TreeTransform;
transforming TypeSourceInfos already gives us proper (and better)
source-location information.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110678
91177308 -0d34-0410-b5e6-
96231b3b80d8
Abramo Bagnara [Tue, 10 Aug 2010 13:46:45 +0000 (13:46 +0000)]
Fixed redundant NNS loading.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110677
91177308 -0d34-0410-b5e6-
96231b3b80d8
Abramo Bagnara [Tue, 10 Aug 2010 10:06:15 +0000 (10:06 +0000)]
Added TypeLocs to VAArgExpr node.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110666
91177308 -0d34-0410-b5e6-
96231b3b80d8
Abramo Bagnara [Tue, 10 Aug 2010 08:50:03 +0000 (08:50 +0000)]
Added TypeLocs to TypesCompatibleExpr node.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110663
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 10 Aug 2010 07:24:25 +0000 (07:24 +0000)]
Even if a constant's evaluated value is used, emit debug info for the constant variable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110660
91177308 -0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 10 Aug 2010 03:13:15 +0000 (03:13 +0000)]
Fix redefinition of typedefs of fixable variably-modified array types; should
fix an issue compiling <windows.h>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110651
91177308 -0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Tue, 10 Aug 2010 02:23:54 +0000 (02:23 +0000)]
Make replicate intrinsics use shufflevector instead of dup builtins, also remove the dup builtins
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110646
91177308 -0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Tue, 10 Aug 2010 01:41:40 +0000 (01:41 +0000)]
Use i32 instead of i8 for AVX dot product intrinsic
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110644
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 10 Aug 2010 01:36:24 +0000 (01:36 +0000)]
There is no need to pubish file static variable's name. Do not rely on this code gen bug to check whether debug info is generated for such variables or not.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110640
91177308 -0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 10 Aug 2010 00:25:48 +0000 (00:25 +0000)]
Run the assembler instead of gcc on Linux.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110635
91177308 -0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Tue, 10 Aug 2010 00:01:23 +0000 (00:01 +0000)]
Consider the last argument of vblend builtin to be i32 instead of i8
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110629
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Mon, 9 Aug 2010 23:27:58 +0000 (23:27 +0000)]
Implements gcc's -Wstrict-selector-match.
(radar
8127244 ).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110622
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 9 Aug 2010 22:38:14 +0000 (22:38 +0000)]
When attempting to recover from a failed unqualified name lookup, make
sure to clear out the LookupResult structure after looking into each class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110615
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 9 Aug 2010 22:28:58 +0000 (22:28 +0000)]
Instead of having a specific CXTranslationUnit_* option flag for
"editing" mode, introduce a separate function
clang_defaultEditingTranslationUnitOptions() that retrieves the set of
options. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110613
91177308 -0d34-0410-b5e6-
96231b3b80d8
Sebastian Redl [Mon, 9 Aug 2010 21:55:28 +0000 (21:55 +0000)]
- Make ObjCInterfaceDecl redeclarable, and create separate decl nodes for 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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110610
91177308 -0d34-0410-b5e6-
96231b3b80d8
John Thompson [Mon, 9 Aug 2010 21:53:52 +0000 (21:53 +0000)]
Added vecreturn attribute parsing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110609
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Mon, 9 Aug 2010 21:08:13 +0000 (21:08 +0000)]
Change warning about incomplete parsing of C++ default arg to error and provide a test case; thanks Doug!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110603
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 9 Aug 2010 21:06:06 +0000 (21:06 +0000)]
Fix mixed declarations and code warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110602
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 9 Aug 2010 21:00:09 +0000 (21:00 +0000)]
Minor libclang tweaks
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110599
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 9 Aug 2010 20:45:32 +0000 (20:45 +0000)]
Use precompiled preambles for in-process code completion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110596
91177308 -0d34-0410-b5e6-
96231b3b80d8
Jordy Rose [Mon, 9 Aug 2010 20:31:57 +0000 (20:31 +0000)]
Allow EvalBinOpNN to handle expressions of the form $a+$b if $b can be reduced to a constant.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110592
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Mon, 9 Aug 2010 18:21:43 +0000 (18:21 +0000)]
Warn if class object does not implement qualified
id's protocols. Fixes radar
8154220 .
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110583
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Mon, 9 Aug 2010 10:59:17 +0000 (10:59 +0000)]
Remove a FIXME.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110571
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Mon, 9 Aug 2010 10:54:37 +0000 (10:54 +0000)]
Complete PCH support for ObjCPropertyImplDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110570
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Mon, 9 Aug 2010 10:54:31 +0000 (10:54 +0000)]
Revert the dump functions to send output to llvm::errs(), matching the LLVM convention; suggestion by Daniel.
'-ast-print' / '-ast-dump' command line options still send output to llvm::outs().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110569
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Mon, 9 Aug 2010 10:54:26 +0000 (10:54 +0000)]
Replace a parser assertion with a warning, suggestion by Doug.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110568
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Mon, 9 Aug 2010 10:54:20 +0000 (10:54 +0000)]
Support ObjC implementation decls for PCH.
Strictly speaking, implementations don't go in headers but there's no law against it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110567
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Mon, 9 Aug 2010 10:54:12 +0000 (10:54 +0000)]
Refactor into functions PCH reading/writing the CXXBaseOrMemberInitializers. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110566
91177308 -0d34-0410-b5e6-
96231b3b80d8
Sean Hunt [Sun, 8 Aug 2010 21:19:33 +0000 (21:19 +0000)]
Remove C++0x concept keyword tokens since concepts were removed from C++0x.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110553
91177308 -0d34-0410-b5e6-
96231b3b80d8