]>
granicus.if.org Git - clang/log
Chris Lattner [Sat, 29 May 2010 01:01:38 +0000 (01:01 +0000)]
add fedora 13 paths, patch by Hendrik Richter.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105082
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Fri, 28 May 2010 23:32:21 +0000 (23:32 +0000)]
Copy source information for the inner type of an elaborated type; fixes some
valgrind problems.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105062
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Fri, 28 May 2010 23:15:59 +0000 (23:15 +0000)]
Implement remaining items in neon td file. Still need to modify emitter to generate a proper header.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105058
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Fri, 28 May 2010 22:43:53 +0000 (22:43 +0000)]
Changed text of 'empty enum' diagnostics to say so.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105013
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Fri, 28 May 2010 22:23:22 +0000 (22:23 +0000)]
Empty enum in c is now error to match gcc's behavior.
(radar
8040068 ).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105011
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Fri, 28 May 2010 21:47:04 +0000 (21:47 +0000)]
Only provide a source location for an anonymous tag if the location is valid
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105010
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Fri, 28 May 2010 21:24:37 +0000 (21:24 +0000)]
Rename BaseInfo to BaseSubobjectInfo.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105007
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Fri, 28 May 2010 21:13:31 +0000 (21:13 +0000)]
Move BaseInfo outside of the EmptySubobject class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105002
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 28 May 2010 20:08:00 +0000 (20:08 +0000)]
Sema: Fix comment, apparently #pragma options align=power is just the same as
align=native, at least for the platforms we support.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105000
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 28 May 2010 19:43:36 +0000 (19:43 +0000)]
Fix personality function name when using SjLj exceptions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104999
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 28 May 2010 19:43:33 +0000 (19:43 +0000)]
Sema: Just ignore '#pragma options align=power' for now, this is no worse than
what we used to be doing, and makes sure that paired '#pragma options
align=reset' won't fail.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104998
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 28 May 2010 19:43:31 +0000 (19:43 +0000)]
Update "users manual", PR2461 has been fixed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104997
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Fri, 28 May 2010 19:40:48 +0000 (19:40 +0000)]
Fix a miscompile of wchar pascal strings.
(radar
8020384 )
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104996
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Fri, 28 May 2010 18:45:08 +0000 (18:45 +0000)]
A more minimal fix for PR6762.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104991
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Fri, 28 May 2010 18:25:28 +0000 (18:25 +0000)]
Roll back r104941.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104990
91177308 -0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Fri, 28 May 2010 18:13:31 +0000 (18:13 +0000)]
Let the backend decide which scheduler and register allocator to use.
Currently, the backend uses the same policy, but it will soon switch to
-regalloc=fast for -O0.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104984
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Fri, 28 May 2010 17:34:43 +0000 (17:34 +0000)]
zero-cost exception API for NeXt runtime.
rethrow inside @catch block must use objc_exception_rethrow
API. Fixes radar
8037512 . Test will be added to LLVM
test suite.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104964
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 28 May 2010 16:43:21 +0000 (16:43 +0000)]
Driver: Spell -relax-all correctly when calling the cc1as tool.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104955
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Fri, 28 May 2010 08:37:35 +0000 (08:37 +0000)]
Disable exception-spec compatibility checking under -fno-exceptions.
Fixes PR7243.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104942
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Fri, 28 May 2010 08:20:36 +0000 (08:20 +0000)]
Add a new attribute on records, __attribute__((adl_invisible)), and define
the x86-64 __va_list_tag with this attribute. The attribute causes the
affected type to behave like a fundamental type when considered by ADL.
(x86-64 is the only target we currently provide with a struct-based
__builtin_va_list)
Fixes PR6762.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104941
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Fri, 28 May 2010 08:11:17 +0000 (08:11 +0000)]
Don't just skip over the entire tag definition if the parser action didn't
give us a decl back. Makes -cc1 -parse-noop handle a substantially larger
amount of the C++ grammar.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104940
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Fri, 28 May 2010 06:14:52 +0000 (06:14 +0000)]
Test case for r104938.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104939
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Fri, 28 May 2010 06:08:54 +0000 (06:08 +0000)]
Optimize and complete associated-class-and-namespace collection from
a type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104938
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Fri, 28 May 2010 04:34:55 +0000 (04:34 +0000)]
When we complain about a member being inaccessible due to a constraint
along an access path, add another note pointing at the member we
actually found.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104937
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Fri, 28 May 2010 04:22:06 +0000 (04:22 +0000)]
Add CMake goop to get arm_neon.h generated
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104934
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Fri, 28 May 2010 02:20:47 +0000 (02:20 +0000)]
Convert arm_neon.h into arm_neon.td, from which arm_neon.h will be built
Add Makefile support for building arm_neon.h from arm_neon.td
Need to figure out an appropriate cmake rule for this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104928
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 28 May 2010 01:54:31 +0000 (01:54 +0000)]
Frontend: Sprinkle in some C++ header paths for ARM/Darwin. Also, don't add x86
paths on non-x86.
I really detest this file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104921
91177308 -0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 28 May 2010 01:47:00 +0000 (01:47 +0000)]
Add an svn:ignore.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104920
91177308 -0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 28 May 2010 01:45:35 +0000 (01:45 +0000)]
This cast is no longer needed; the FIXME is fixed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104919
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Fri, 28 May 2010 01:41:47 +0000 (01:41 +0000)]
When filtering out previous declarations of friend functions, consider the
lookup context, not the direct semantic context. Fixes PR7230.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104917
91177308 -0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 28 May 2010 01:39:35 +0000 (01:39 +0000)]
This cast is no longer required.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104916
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Fri, 28 May 2010 00:57:46 +0000 (00:57 +0000)]
Don't put method bodies into code completions unless code patterns are
turned on.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104909
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Fri, 28 May 2010 00:49:12 +0000 (00:49 +0000)]
Do not produce types as valid code completions when we're in an
expression context in C/Objective-C, or when we're in an
@interface/@implementation/@protocol in Objective-C(++).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104908
91177308 -0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 28 May 2010 00:27:15 +0000 (00:27 +0000)]
Add several more predefines from modern versions of GCC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104906
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Fri, 28 May 2010 00:22:41 +0000 (00:22 +0000)]
Make -code-completion-patterns only cover multi-line code
completions. Plus, tweak a few completion patterns to better reflect
the language grammar.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104905
91177308 -0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 27 May 2010 23:54:20 +0000 (23:54 +0000)]
Update __builtin_setjmp codegen to match llvmCore changes in r104900.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104902
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 27 May 2010 23:40:55 +0000 (23:40 +0000)]
Fix typo.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104898
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Thu, 27 May 2010 23:06:34 +0000 (23:06 +0000)]
Implement a code-completion hook for the receiver of an Objective-C
message. This completion gives better results than just using the
"expression" completion, which is effectively what happened before.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104895
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Thu, 27 May 2010 21:28:21 +0000 (21:28 +0000)]
Tweak the fix-it for a copy constructor declared to take its argument
by-value. We now only prepend a space if it is needed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104889
91177308 -0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 27 May 2010 20:28:55 +0000 (20:28 +0000)]
Add a comment to mention the memory ownership situation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104886
91177308 -0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 27 May 2010 20:16:37 +0000 (20:16 +0000)]
When handling raw_ostream errors manually, use clear_error() so that
raw_ostream doesn't try to do its own error handling.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104880
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Thu, 27 May 2010 18:51:01 +0000 (18:51 +0000)]
When null-initializing bases with data member pointers, don't assert on virtual bases. Just initialize them to null.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104868
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Thu, 27 May 2010 18:47:06 +0000 (18:47 +0000)]
Enable the implementation of __builtin_setjmp and __builtin_longjmp. Not all
LLVM backends support these yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104867
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 27 May 2010 18:42:17 +0000 (18:42 +0000)]
Parse/Sema: Add support for '#pragma options align=packed', which, it should be
noted, is not the same as __attribute__((packed)). That would be ridiculous!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104865
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 27 May 2010 18:42:09 +0000 (18:42 +0000)]
Parse/Sema: Add support for '#pragma options align=native'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104864
91177308 -0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 27 May 2010 18:35:05 +0000 (18:35 +0000)]
Silence warning about "enumeral and non-enumeral type in conditional
expression".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104863
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Thu, 27 May 2010 18:20:57 +0000 (18:20 +0000)]
More work on the empty subobject map. This code is not yet used.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104861
91177308 -0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 27 May 2010 17:33:40 +0000 (17:33 +0000)]
MemoryBuffer::getSTDIN may return a null pointer if an error occurs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104856
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 27 May 2010 16:57:42 +0000 (16:57 +0000)]
Remove clang_isFromMainFile(). It doesn't work correctly with CXDiagnostics, and we shouldn't
have an API around that cannot be implemented correctly yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104849
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Thu, 27 May 2010 16:35:00 +0000 (16:35 +0000)]
Fix 80-column.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104847
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Thu, 27 May 2010 16:15:06 +0000 (16:15 +0000)]
Another empty class layout test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104839
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Thu, 27 May 2010 16:07:49 +0000 (16:07 +0000)]
Add more empty class layout tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104838
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Thu, 27 May 2010 16:05:06 +0000 (16:05 +0000)]
Objective-c++ IR gen.
Flag synthesized struct decl. as non-empty so
CXX side of ir gen does not skip its Null initialization.
Fixes radar
8027844 for objc++'s collection statement.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104837
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Thu, 27 May 2010 15:25:59 +0000 (15:25 +0000)]
When we've parsed a nested-name-specifier in a member access
expression, "forget" about the object type; only the
nested-name-specifier matters for name lookup purposes. Fixes PR7239.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104834
91177308 -0d34-0410-b5e6-
96231b3b80d8
Abramo Bagnara [Thu, 27 May 2010 07:42:50 +0000 (07:42 +0000)]
Fixed missing initialization of member. Should we enable unused argument warning?.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104829
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 27 May 2010 07:00:26 +0000 (07:00 +0000)]
Darwin/ARM seems to support mac68k align as well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104828
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 27 May 2010 06:51:08 +0000 (06:51 +0000)]
Driver: Update -O -> -O2 replacement for addition of -O0 option.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104823
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Thu, 27 May 2010 06:40:31 +0000 (06:40 +0000)]
Require a complete type when performing the qualified lookup during
instantiation of a dependent elaborated type specifier. Fixes PR 7199.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104822
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 27 May 2010 06:27:45 +0000 (06:27 +0000)]
Update checker build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104817
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Thu, 27 May 2010 06:19:26 +0000 (06:19 +0000)]
Implement __builtin_init_dwarf_reg_size_table and __builtin_dwarf_sp_column
for 32-bit MIPS processors. Hat-tip to rdivacky for providing gcc dumps
on this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104816
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 27 May 2010 06:18:05 +0000 (06:18 +0000)]
Driver: Add support for -m[no-]relax-all, and make it the default at -O0.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104815
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 27 May 2010 05:45:51 +0000 (05:45 +0000)]
Sema: Add initial support for '#pragma options align=mac68k'.
- Docs are fairly sketchy, if someone wants to pore through gcc to look for
holes I'd appreciate any failing test cases!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104809
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Thu, 27 May 2010 05:41:06 +0000 (05:41 +0000)]
More work on the new empty subobject map.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104808
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 27 May 2010 05:39:39 +0000 (05:39 +0000)]
Driver: Add clang -cc1 -mrelax-all option, which sets relaxes all instructions when using -integrated-as.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104807
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 27 May 2010 02:25:46 +0000 (02:25 +0000)]
Strip trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104801
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 27 May 2010 02:25:39 +0000 (02:25 +0000)]
AST: Add AlignMac68kAttr, not yet used.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104800
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 27 May 2010 02:25:27 +0000 (02:25 +0000)]
Sema: Factor out struct for alignment stack entries.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104799
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Thu, 27 May 2010 02:04:58 +0000 (02:04 +0000)]
Give this test a triple.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104798
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 27 May 2010 01:53:40 +0000 (01:53 +0000)]
Sema: Replace getPragmaPackAlignment with AddAlignmentAttributesForRecord, which
exposes less details.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104797
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Thu, 27 May 2010 01:45:30 +0000 (01:45 +0000)]
When deciding whether a deferred declaration has already been emitted,
aliases count as definitions regardless of whether their target has been
emitted yet. Fixes PR 7142.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104796
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 27 May 2010 01:12:46 +0000 (01:12 +0000)]
AST: Rename PragmaPackAttr to MaxFieldAlignmentAttr, which is more accurate.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104795
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 27 May 2010 00:35:16 +0000 (00:35 +0000)]
Sema: Reject '#pragma options align=mac68k' everywhere except i386-apple-darwin.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104789
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 27 May 2010 00:29:00 +0000 (00:29 +0000)]
Discard qualifiers for ElementRegions so that a 'const' doesn't change the lookup semantics
in the symbol store. We may wish to push this down into the StoreManager itself.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104788
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Thu, 27 May 2010 00:07:01 +0000 (00:07 +0000)]
More work on the empty subobjects map.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104787
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 27 May 2010 00:04:40 +0000 (00:04 +0000)]
Sema: Support for #pragma options align={reset,natural}. '#pragma options align'
shares the stack with '#pragma pack', who knew!?
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104786
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 26 May 2010 23:29:06 +0000 (23:29 +0000)]
Parse: Add support for '#pragma options align'.
Also, fix a source location bug with the rparen in #pragma pack.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104784
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Wed, 26 May 2010 22:34:26 +0000 (22:34 +0000)]
Correctly pass aggregates by reference when emitting thunks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104778
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 26 May 2010 22:00:08 +0000 (22:00 +0000)]
Introduce priorities into the code-completion results.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104751
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 26 May 2010 21:48:10 +0000 (21:48 +0000)]
Grammar fix: s/it's/its/g in
"it's spelling location and it's instantiation location"
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104746
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Wed, 26 May 2010 21:45:50 +0000 (21:45 +0000)]
Patch to fix a irgen crash accessing an initialized local static
variable in a local function. Fixes pr7101.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104743
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 26 May 2010 21:36:54 +0000 (21:36 +0000)]
Predefine the '__clang_analyzer__' macro when using '-analyze'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104742
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Wed, 26 May 2010 20:46:24 +0000 (20:46 +0000)]
Improve on flexible array diagnostics (PR7029).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104739
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Wed, 26 May 2010 20:19:07 +0000 (20:19 +0000)]
Fixes misc. flexible array bugs in c++ (PR7029).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104733
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Wed, 26 May 2010 19:40:41 +0000 (19:40 +0000)]
Update .xcodeproj file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104721
91177308 -0d34-0410-b5e6-
96231b3b80d8
Charles Davis [Wed, 26 May 2010 18:25:27 +0000 (18:25 +0000)]
Extract the ObjC and blocks manglers into their own class. No functionality
change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104715
91177308 -0d34-0410-b5e6-
96231b3b80d8
Abramo Bagnara [Wed, 26 May 2010 18:17:40 +0000 (18:17 +0000)]
Fixed comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104714
91177308 -0d34-0410-b5e6-
96231b3b80d8
Abramo Bagnara [Wed, 26 May 2010 18:09:23 +0000 (18:09 +0000)]
Added source order to CXXBaseOrMemberInitializer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104712
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Wed, 26 May 2010 15:54:25 +0000 (15:54 +0000)]
Move ComputeEmptySubobjectSizes to EmptySubobjectMap.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104702
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Wed, 26 May 2010 15:32:58 +0000 (15:32 +0000)]
Stub out the EmptySubobjectsMap class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104701
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Wed, 26 May 2010 15:20:08 +0000 (15:20 +0000)]
Inline the RecordLayoutBuilder constructor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104700
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Wed, 26 May 2010 15:10:00 +0000 (15:10 +0000)]
Add a Layout overload that takes a CXXRecordDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104695
91177308 -0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 26 May 2010 09:58:31 +0000 (09:58 +0000)]
Move RecordLayoutBuilder into an anonymous namespace.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104693
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 26 May 2010 07:10:06 +0000 (07:10 +0000)]
When transforming a C++ "new" expression's constructor arguments, drop
any arguments that are default-argument expressions. The can show up
when we have a new expression whose constructor arguments are not
type-dependent and whose allocated type is not dependent and has a
constructor with default arguments. Fixes PR7202.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104690
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Wed, 26 May 2010 05:58:59 +0000 (05:58 +0000)]
Rename ASTRecordLayoutBuilder to RecordLayoutBuilder.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104688
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Wed, 26 May 2010 05:49:19 +0000 (05:49 +0000)]
Remove RecordLayoutBuilder.h
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104687
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Wed, 26 May 2010 05:41:04 +0000 (05:41 +0000)]
Move the ASTRecordLayoutBuilder class declaration into the .cpp file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104686
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Wed, 26 May 2010 05:36:18 +0000 (05:36 +0000)]
ASTRecordLayoutBuilder is no longer a friend of ASTRecordLayout.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104685
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 26 May 2010 05:35:51 +0000 (05:35 +0000)]
Tell the string literal parser when it's not permitted to emit
diagnostics. That would be while we're parsing string literals for the
sole purpose of producing a diagnostic about them. Fixes
<rdar://problem/
8026030 >.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104684
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Wed, 26 May 2010 05:31:23 +0000 (05:31 +0000)]
Fix thinko and remove another unused function.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104683
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Wed, 26 May 2010 05:25:15 +0000 (05:25 +0000)]
Fix build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104682
91177308 -0d34-0410-b5e6-
96231b3b80d8