]>
granicus.if.org Git - clang/log
Bob Wilson [Thu, 2 Dec 2010 01:18:30 +0000 (01:18 +0000)]
Test use of arm_neon.h with -fno-lax-vector-conversions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120642
91177308 -0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 2 Dec 2010 00:25:18 +0000 (00:25 +0000)]
Add a testcase for Radar
8228022 .
Make sure the -Wvector-conversions does not cause unnecessary warnings when
using Neon intrinsics with the correct types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120634
91177308 -0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 2 Dec 2010 00:25:15 +0000 (00:25 +0000)]
Swap order of checking for compatible vector types.
Check for compatible gcc, Altivec and Neon vectors before handling the
lax-vector-conversions case. Otherwise there is no way to avoid the
warnings from -Wvector-conversions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120633
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Thu, 2 Dec 2010 00:22:25 +0000 (00:22 +0000)]
Eliminate two uses of NDEBUG in headers that cause different symbols
to be available in debug vs. release builds.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120629
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Thu, 2 Dec 2010 00:05:49 +0000 (00:05 +0000)]
Make TypeLocBuilder an implementation detail of Sema. Nobody else should be using it
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120628
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 1 Dec 2010 23:49:52 +0000 (23:49 +0000)]
Extend ExternalASTSource with the ability to lazily complete the
definition of an Objective-C class. Unlike with C/C++ classes, we
don't have a well-defined point in Sema where Objective-C classes are
checked for completeness, nor do we need to involve Sema when
completing a class. Therefore, we take the appropriate of having the
external AST source mark a particular Objective-C class as having an
external declaration; when using one of the accessors of an
Objective-C class that has an external declaration, we request that
the external AST source fill in the Objective-C class definition.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120627
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Wed, 1 Dec 2010 22:29:46 +0000 (22:29 +0000)]
Sema/AST work for capturing copy init expression
to be used in copy helper synthesis of __block
variables. wip.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120617
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 1 Dec 2010 22:16:56 +0000 (22:16 +0000)]
Rename all 'AssumeXXX' methods in libChecker
to 'assumeXXX'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120614
91177308 -0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 1 Dec 2010 22:13:54 +0000 (22:13 +0000)]
80-col fixups.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120613
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anton Yartsev [Wed, 1 Dec 2010 21:59:31 +0000 (21:59 +0000)]
Optimized IR for vec_splat
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120610
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 1 Dec 2010 21:57:22 +0000 (21:57 +0000)]
Rename all 'EvalXXX' methods in libChecker to
'evalXXX'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120609
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 1 Dec 2010 21:43:58 +0000 (21:43 +0000)]
Improve our handling of cv-qualifiers in Objective-C pointer
conversions. Previously, we would end up collapsing qualification
conversions into the Objective-C pointer conversion step, including
(possibly) stripping qualifiers that shouldn't be removed.
This generalizes BuildSimilarlyQualifiedPointerType() to also work on
Objective-C object pointers, then eliminates the (redundant, not
totally correct) BuildSimilarlyQualifiedObjCObjectPointerType()
function.
Fixes <rdar://problem/
8714395 >.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120607
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 1 Dec 2010 21:28:31 +0000 (21:28 +0000)]
Rename 'SValuator' to 'SValBuilder'. The new name
reflects what the class actually does.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120605
91177308 -0d34-0410-b5e6-
96231b3b80d8
Shantonu Sen [Wed, 1 Dec 2010 20:38:11 +0000 (20:38 +0000)]
Fix build of in-tree libcxx. libcxx doesn't actually
need any of the LLVM support libraries. Reviewed
by Daniel Dunbar.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120602
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 1 Dec 2010 20:32:20 +0000 (20:32 +0000)]
Not content to implement just "extern" explicit template
instantiations, GCC also supports "inline" and "static" explicit
template instantiations. Parse and warn about such constructs, but
don't implement the semantics of either "inline" or "static". They
don't seem to be widely used.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120599
91177308 -0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 1 Dec 2010 19:50:20 +0000 (19:50 +0000)]
Add some comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120598
91177308 -0d34-0410-b5e6-
96231b3b80d8
Peter Collingbourne [Wed, 1 Dec 2010 19:14:57 +0000 (19:14 +0000)]
Serialization: support for CUDA language extensions
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120588
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 1 Dec 2010 17:42:47 +0000 (17:42 +0000)]
After parsing a ':' in an enum-specifier within class context,
disambiguate between an expression (for a bit-field width) and a type
(for a fixed underlying type). Since the disambiguation can be
expensive (due to tentative parsing), we perform a simplistic
disambiguation based on one-token lookahead before going into the
full-blown tentative parsing. Based on a patch by Daniel Wallin.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120582
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 1 Dec 2010 16:10:38 +0000 (16:10 +0000)]
Improve the diagnostic when the fixed underlying type of a
redeclaration of an enum type differs from that of the original
declaration, from Daniel Wallin
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120577
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 1 Dec 2010 16:01:08 +0000 (16:01 +0000)]
AST printing for scoped enumerations and enumerations with a fixed underlying type, from Daniel Wallin
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120576
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Wed, 1 Dec 2010 08:12:46 +0000 (08:12 +0000)]
Eliminate vtables from the Type hierarchy.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120562
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Wed, 1 Dec 2010 04:43:34 +0000 (04:43 +0000)]
Restore the lvalue-to-rvalue conversion patch with a minimal fix.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120555
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 1 Dec 2010 04:33:27 +0000 (04:33 +0000)]
Remove stray emacs mode marker.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120554
91177308 -0d34-0410-b5e6-
96231b3b80d8
Peter Collingbourne [Wed, 1 Dec 2010 04:22:41 +0000 (04:22 +0000)]
test: add .cu extension
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120553
91177308 -0d34-0410-b5e6-
96231b3b80d8
Peter Collingbourne [Wed, 1 Dec 2010 03:15:31 +0000 (03:15 +0000)]
Basic, Sema: add support for CUDA location attributes
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120545
91177308 -0d34-0410-b5e6-
96231b3b80d8
Peter Collingbourne [Wed, 1 Dec 2010 03:15:20 +0000 (03:15 +0000)]
Driver, Frontend: add CUDA language support
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120544
91177308 -0d34-0410-b5e6-
96231b3b80d8
Peter Collingbourne [Wed, 1 Dec 2010 03:15:10 +0000 (03:15 +0000)]
Basic: Add CUDA language option
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120543
91177308 -0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 1 Dec 2010 02:59:44 +0000 (02:59 +0000)]
Don't check the isysroot path for Path::isValid(); if the user has
specified a syntactically invalid path, it's better to let the OS
diagnose the problem than to silently skip it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120542
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 1 Dec 2010 02:05:19 +0000 (02:05 +0000)]
add some infrastructure that will let us codegen
http://llvm.org/bugs/show_bug.cgi?id=279#c3 better.
No functionality change yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120530
91177308 -0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 1 Dec 2010 01:52:43 +0000 (01:52 +0000)]
Handle -nostartfiles.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120528
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 1 Dec 2010 01:47:15 +0000 (01:47 +0000)]
get some i32/i8/i1 constants from Builder, which is much less painful than
using ConstantInt::get.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120527
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 1 Dec 2010 01:36:18 +0000 (01:36 +0000)]
Implement AST import support for class template specializations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120523
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Wed, 1 Dec 2010 01:07:24 +0000 (01:07 +0000)]
When unknown method is sent to a receiver of
'Class' type, disgnostic should refere to a
class method. Fixes // rdar://
8592156
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120517
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Tue, 30 Nov 2010 23:21:46 +0000 (23:21 +0000)]
A CGRecordLayout object persists. Since its contained types may
refer to opaque types, they must be held via PATypeHolders. I'm
not sure why this hasn't blown up before.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120491
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Tue, 30 Nov 2010 23:17:27 +0000 (23:17 +0000)]
CGRecordLayoutBuilder does not need to be exported from this module.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120489
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 30 Nov 2010 23:08:24 +0000 (23:08 +0000)]
Update checker build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120487
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 30 Nov 2010 23:07:14 +0000 (23:07 +0000)]
Declaring local static in global block
literal declaration caused crash in CodeGen.
This patch fixes it. pr8707
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120486
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Tue, 30 Nov 2010 22:57:32 +0000 (22:57 +0000)]
Follow through references to catch returned stack addresses, local blocks, label addresses or references to temporaries, e.g:
const int& g2() {
int s1;
int &s2 = s1; // expected-note {{binding reference variable 's2' here}}
return s2; // expected-warning {{reference to stack memory associated with local variable 's1' returned}}
}
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120483
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 30 Nov 2010 19:14:50 +0000 (19:14 +0000)]
Implement basic AST importing and merging support for class template
declarations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120448
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 30 Nov 2010 19:14:03 +0000 (19:14 +0000)]
Eliminate more pointless default statements
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120446
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 30 Nov 2010 18:25:34 +0000 (18:25 +0000)]
Add objc_getClass as an objc builtin function
(// rdar://
8592641 ). Also rename LANGUAGEID to
LanguageID.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120437
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Tue, 30 Nov 2010 17:58:55 +0000 (17:58 +0000)]
L-value to r-value conversion is not ready for prime-time.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120433
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 30 Nov 2010 17:35:24 +0000 (17:35 +0000)]
Such function decls,as objc's objc_msgSend, builtins in
a specific language. We are adding such language info. by
extensing Builtins.def and via a language flag added
to LIBBUILTIN/BUILTIN and check for that when deciding
a name is builtin or not. Implements //rdar://
8689273 .
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120429
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Tue, 30 Nov 2010 10:13:06 +0000 (10:13 +0000)]
Introduce an r-value to l-value cast kind. I'm not promising anything
about the reliability of this yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120422
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Tue, 30 Nov 2010 10:12:16 +0000 (10:12 +0000)]
Make the dumper safe against null declaration names.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120421
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Tue, 30 Nov 2010 10:11:54 +0000 (10:11 +0000)]
Update Xcode project: remove Action.cpp, add DumpXML.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120420
91177308 -0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 30 Nov 2010 09:08:23 +0000 (09:08 +0000)]
System was renamed Support. Fix the build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120414
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Tue, 30 Nov 2010 07:50:28 +0000 (07:50 +0000)]
Take John McCall's suggestion and fix this silly gcc warnings in a way that
Doug isn't likely to rip back out.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120409
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 30 Nov 2010 06:40:00 +0000 (06:40 +0000)]
I hate pointless default statements
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120402
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 30 Nov 2010 06:38:09 +0000 (06:38 +0000)]
Harden CGDebugInfo::CreateType() a bit for cases where we couldn't generate type info for its component types
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120401
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 30 Nov 2010 06:17:12 +0000 (06:17 +0000)]
Add missing file from last commit
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120397
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 30 Nov 2010 06:16:57 +0000 (06:16 +0000)]
When using a precompiled preamble with detailed preprocessing records,
trap the serialized preprocessing records (macro definitions, macro
instantiations, macro definitions) from the generation of the
precompiled preamble, then replay those when walking the list of
preprocessed entities. This eliminates a bug where clang_getCursor()
wasn't able to find preprocessed-entity cursors in the preamble.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120396
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 30 Nov 2010 06:04:54 +0000 (06:04 +0000)]
De-C99-ify for loop
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120395
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 30 Nov 2010 05:52:55 +0000 (05:52 +0000)]
Teach c-index-test to reparse the source file a few times when testing
clang_getCursor() via -cursor-at=??? and CINDEXTEST_EDITING is set in
the environment. This mirrors how we test code completion and
source-loading in the presence of this environment variable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120392
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 30 Nov 2010 05:23:00 +0000 (05:23 +0000)]
When loading a precompiled preamble, use the file ID of the
precompiled preamble as the "main" source file's file ID within the
source manager. This makes compiling with a precompiled preamble
produce the same source locations as when compiling without the
precompiled preamble; prior to this change, we ended up with different
file IDs for source locations within the precompiled preamble
vs. those after the precompiled preamble, even for entities (e.g.,
preprocessing entities) in the same file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120390
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nico Weber [Tue, 30 Nov 2010 04:44:33 +0000 (04:44 +0000)]
Fix bug in r120299 spotted by dgregor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120389
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Tue, 30 Nov 2010 02:05:44 +0000 (02:05 +0000)]
Fix another case of giving the wrong value kind to a dependent cast to
a non-dependent type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120384
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Tue, 30 Nov 2010 01:47:38 +0000 (01:47 +0000)]
Replace \r\n with \n. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120379
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Tue, 30 Nov 2010 01:28:32 +0000 (01:28 +0000)]
Add a default clause to avoid this GCC warning:
Type.cpp:1000: warning: control reaches end of non-void function
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120376
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Mon, 29 Nov 2010 23:42:03 +0000 (23:42 +0000)]
Revert r120331 since it causes spurious warnings and a possible assertion hit when self-host.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120351
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Mon, 29 Nov 2010 23:18:09 +0000 (23:18 +0000)]
Incomplete enum types not to be treated as integer type
when checking for integer signed/unsigned-ness. PR8694,
// rdar://
8707031
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120345
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Mon, 29 Nov 2010 22:32:08 +0000 (22:32 +0000)]
Emit warnings if we are returning a reference to a local temporary.
The issue was brought to our attention by Matthieu Monrocq.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120331
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nico Weber [Mon, 29 Nov 2010 18:19:25 +0000 (18:19 +0000)]
Always use a function's decl context when building default arguments. Fixes http://http://llvm.org/pr8479.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120299
91177308 -0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Mon, 29 Nov 2010 18:12:39 +0000 (18:12 +0000)]
Merge System into Support.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120297
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Mon, 29 Nov 2010 18:01:58 +0000 (18:01 +0000)]
Revert r120063, it was wrong.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120296
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 29 Nov 2010 17:45:20 +0000 (17:45 +0000)]
I hate default statements
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120293
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 29 Nov 2010 16:37:40 +0000 (16:37 +0000)]
Add a test for C++ [stmt.label]p1, from Sashan!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120291
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 29 Nov 2010 16:13:56 +0000 (16:13 +0000)]
When performing code completion within ASTUnit, allocate the AugmentedCodeCompleteConsumer on the heap, so it's always cleaned up properly
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120290
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 29 Nov 2010 16:04:58 +0000 (16:04 +0000)]
Teach the ASTImporter how to create CXXMethodDecls. Somehow, this case was missed previously
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120289
91177308 -0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Mon, 29 Nov 2010 01:18:56 +0000 (01:18 +0000)]
test/CMakeLists.txt: Implement the target "check-all". For now, it has no dependencies.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120280
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Sun, 28 Nov 2010 23:06:23 +0000 (23:06 +0000)]
Don't store the maximum alignment, we can trivially compute it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120268
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nico Weber [Sun, 28 Nov 2010 22:58:38 +0000 (22:58 +0000)]
Revert parts of r120266 that I did not mean to commit
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120267
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nico Weber [Sun, 28 Nov 2010 22:53:37 +0000 (22:53 +0000)]
Minor whitespace and comment fixes. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120266
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Sun, 28 Nov 2010 19:18:44 +0000 (19:18 +0000)]
More work on laying out virtual bases.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120257
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Nov 2010 18:44:10 +0000 (18:44 +0000)]
tighten up operator= to ensure we don't get multiple owners with the same FD.
wouldn't move ctors be nice? :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120255
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Nov 2010 18:19:13 +0000 (18:19 +0000)]
fix typo
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120254
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Sun, 28 Nov 2010 17:53:32 +0000 (17:53 +0000)]
BuildVirtualCall doesn't need to take a reference to a pointer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120252
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Sun, 28 Nov 2010 17:50:09 +0000 (17:50 +0000)]
Make the destructor be the 'vtable anchor' of the CGCXXABI class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120251
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Sun, 28 Nov 2010 17:49:03 +0000 (17:49 +0000)]
Move CGCXXABI functions to CGCXXABI.cpp
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120250
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Sun, 28 Nov 2010 17:46:52 +0000 (17:46 +0000)]
Add a CGCXXABI.cpp file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120249
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Sun, 28 Nov 2010 16:40:49 +0000 (16:40 +0000)]
Look through parentheses when deciding whether an expr is a temporary object. Fixes PR8683.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120247
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Sun, 28 Nov 2010 07:20:14 +0000 (07:20 +0000)]
Add GCC 4.4.5 for Gentoo, and order them in a more sensible way. This allows
Gentoo systems with multiple versions to pick up the newest one first. This is
especially important with Gentoo because some of the older versions are left on
systems in strange states.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120238
91177308 -0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Sun, 28 Nov 2010 01:08:36 +0000 (01:08 +0000)]
Add missing else.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120231
91177308 -0d34-0410-b5e6-
96231b3b80d8
Sebastian Redl [Fri, 26 Nov 2010 18:37:14 +0000 (18:37 +0000)]
Forgot a file in r120182
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120184
91177308 -0d34-0410-b5e6-
96231b3b80d8
Sebastian Redl [Fri, 26 Nov 2010 16:28:07 +0000 (16:28 +0000)]
Allow access to non-static members without an object in sizeof expressions, in C++0x. Patch by Jakub Wieczorek.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120182
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Fri, 26 Nov 2010 10:57:22 +0000 (10:57 +0000)]
For internal consistency's sake, compute the value kind of a dependent cast
based on the known properties of the casted-to type. Fixes a crash on spirit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120180
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Fri, 26 Nov 2010 09:14:07 +0000 (09:14 +0000)]
Do not use StripCasts() in this context.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120178
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Fri, 26 Nov 2010 09:07:38 +0000 (09:07 +0000)]
Should not use StripCasts() in this context.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120177
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Fri, 26 Nov 2010 08:52:48 +0000 (08:52 +0000)]
Rename CXXObjectRegion to CXXTempObjectRegion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120176
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Fri, 26 Nov 2010 08:42:27 +0000 (08:42 +0000)]
fix a bug introduced in r120173.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120175
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Fri, 26 Nov 2010 08:21:53 +0000 (08:21 +0000)]
Regionstore: support derived-to-base cast by creating a CXXBaseObjectRegion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120173
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Fri, 26 Nov 2010 07:15:40 +0000 (07:15 +0000)]
Add a fixme.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120172
91177308 -0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 25 Nov 2010 18:51:59 +0000 (18:51 +0000)]
Add C++ header path for openSUSE 11.4.
Patch by İsmail Dönmez.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120154
91177308 -0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 25 Nov 2010 18:29:30 +0000 (18:29 +0000)]
Hide a bunch of symbols.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120153
91177308 -0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 25 Nov 2010 17:32:32 +0000 (17:32 +0000)]
OpaquePtrs are POD-like.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120148
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Thu, 25 Nov 2010 06:35:14 +0000 (06:35 +0000)]
For CFGAutomaticObjDtor, the type may be reference type, e.g., const A &c = A();
Also apply some new coding style.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120144
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Thu, 25 Nov 2010 03:18:57 +0000 (03:18 +0000)]
handle CXXFunctionalCastExpr in visitLValue and Environment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120143
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Thu, 25 Nov 2010 02:52:17 +0000 (02:52 +0000)]
Improve comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120142
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Thu, 25 Nov 2010 02:07:24 +0000 (02:07 +0000)]
Add dump method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120141
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Thu, 25 Nov 2010 01:59:35 +0000 (01:59 +0000)]
Begin work on actually laying out virtual bases.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120140
91177308 -0d34-0410-b5e6-
96231b3b80d8