| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
selection-statements and iteration-statements (if/switch/while/for).
Add new 'ActOnCXXConditionDeclarationExpr' action, called when the 'condition' is a declaration instead of an expression.
llvm-svn: 56007
|
| |
|
|
|
|
| |
from being propagated
llvm-svn: 56004
|
| |
|
|
| |
llvm-svn: 56002
|
| |
|
|
| |
llvm-svn: 55994
|
| |
|
|
| |
llvm-svn: 55991
|
| |
|
|
|
|
|
|
|
|
|
| |
- Replace string comparisons with pre-defined idents.
- Avoid calling isBuiltinObjCType() to avoid two checks.
- Remove isBuiltinObjCType(), since it was only used in Sema::MergeTypeDefDecl().
- Have Sema::MergeTypeDefDecl() set the new type.
This is a moidified version of an patch by David Chisnall.
llvm-svn: 55990
|
| |
|
|
| |
llvm-svn: 55989
|
| |
|
|
| |
llvm-svn: 55986
|
| |
|
|
| |
llvm-svn: 55984
|
| |
|
|
| |
llvm-svn: 55983
|
| |
|
|
| |
llvm-svn: 55978
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Add CodeGenFunction::EmitAnyExprToTemp
o Like EmitAnyExpr, but emits aggregates to a temporary location if
none is available. Seems like this should be simpler (even aside
from using first class aggregates).
- Killed CodeGenFunction::EmitCallArg (just append the pair)
- Conversion of RValues to actual call arguments is now isolated in
CodeGenFunction::EmitCall.
llvm-svn: 55970
|
| |
|
|
| |
llvm-svn: 55967
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
aliases.
- Attributes specific to a definition are only set when the
definition is seen.
- Alias generation is delayed until the end of the module; necessary
since the alias may reference forward.
- Fixes: PR2743, <rdr://6140807&6094512>
- Improves: <rdr://6095112> (added XFAIL)
Also, print module on verification failures.
llvm-svn: 55966
|
| |
|
|
|
|
|
|
|
| |
- Add CGCall.h for dealing with ABI issues related to calls.
- Add CGFunctionInfo and CGCallInfo for capturing ABI relevant
information about functions and calls.
- Isolate LLVM parameter attribute handling inside CGCall.cpp
llvm-svn: 55963
|
| |
|
|
|
|
| |
- Patch from Kevin Tew.
llvm-svn: 55940
|
| |
|
|
| |
llvm-svn: 55934
|
| |
|
|
| |
llvm-svn: 55888
|
| |
|
|
| |
llvm-svn: 55887
|
| |
|
|
|
|
| |
someone with llvm-gcc installed please test if the Codegen/function-attributes.c test isn't skip in your system. thanks.
llvm-svn: 55871
|
| |
|
|
|
|
| |
a many-to-one relationship between TagDecl's and types.
llvm-svn: 55870
|
| |
|
|
|
|
|
|
|
|
| |
If you're on some other platform, the correct definition for this macro
would be appreciated; to find the correct definition, just run the
following command:
echo | gcc -dM -E - | grep USER_LABEL_PREFIX
llvm-svn: 55869
|
| |
|
|
|
|
| |
this weekend).
llvm-svn: 55862
|
| |
|
|
|
|
| |
comments below it were stale, so I accidently removed the whole thing).
llvm-svn: 55841
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
RecordDecls, as opposed to creating a single RecordDecl and reusing it.
This change effects both RecordDecls and CXXRecordDecls, but does not effect EnumDecls (yet).
The motivation of this patch is as follows:
- Capture more source information, necessary for refactoring/rewriting clients.
- Pave the way to resolve ownership issues with RecordDecls with the forthcoming
addition of DeclGroups.
Current caveats:
- Until DeclGroups are in place, we will leak RecordDecls not explicitly
referenced by the AST. For example:
typedef struct { ... } x;
The RecordDecl for the struct will be leaked because the TypedefDecl doesn't
refer to it. This will be solved with DeclGroups.
- This patch also (temporarily) breaks CodeGen. More below.
High-level changes:
- As before, TagType still refers to a TagDecl, but it doesn't own it. When
a struct/union/class is first referenced, a RecordType and RecordDecl are
created for it, and the RecordType refers to that RecordDecl. Later, if
a new RecordDecl is created, the pointer to a RecordDecl in RecordType is
updated to point to the RecordDecl that defines the struct/union/class.
- TagDecl and RecordDecl now how a method 'getDefinition()' to return the
TagDecl*/RecordDecl* that refers to the TagDecl* that defines a particular
enum/struct/class/union. This is useful from going from a RecordDecl* that
defines a forward declaration to the RecordDecl* that provides the actual
definition. Note that this also works for EnumDecls, except that in this case
there is no distinction between forward declarations and definitions (yet).
- Clients should no longer assume that 'isDefinition()' returns true from a
RecordDecl if the corresponding struct/union/class has been defined.
isDefinition() only returns true if a particular RecordDecl is the defining
Decl. Use 'getDefinition()' instead to determine if a struct has been defined.
- The main changes to Sema happen in ActOnTag. To make the changes more
incremental, I split off the processing of enums and structs et al into two
code paths. Enums use the original code path (which is in ActOnTag) and
structs use the ActOnTagStruct. Eventually the two code paths will be merged,
but the idea was to preserve the original logic both for comparison and not to
change the logic for both enums and structs all at once.
- There is NO CHAINING of RecordDecls for the same RecordType. All RecordDecls
that correspond to the same type simply have a pointer to that type. If we
need to figure out what are all the RecordDecls for a given type we can build
a backmap.
- The diff in CXXRecordDecl.[cpp,h] is actually very small; it just mimics the
changes to RecordDecl. For some reason 'svn' marks the entire file as changed.
Why is CodeGen broken:
- Codegen assumes that there is an equivalence between RecordDecl* and
RecordType*. This was true before because we only created one RecordDecl* for
a given RecordType*, but it is no longer true. I believe this shouldn't be too
hard to change, but the patch was big enough as it is.
I have tested this patch on both the clang test suite, and by running the static analyzer over Postgresql and a large Apple-internal project (mix of Objective-C and C).
llvm-svn: 55839
|
| |
|
|
| |
llvm-svn: 55833
|
| |
|
|
| |
llvm-svn: 55832
|
| |
|
|
| |
llvm-svn: 55830
|
| |
|
|
| |
llvm-svn: 55829
|
| |
|
|
| |
llvm-svn: 55827
|
| |
|
|
|
|
| |
preprocessed outputs)
llvm-svn: 55826
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- gcc is not happy if we start a preprocessed file with
#line 1 "XXX" 1
- Workaround by making sure file starts with a simple #line change.
Also, factored WriteLineInfo out.
Also, fixed bug where FileType was not being correctly updated.
llvm-svn: 55825
|
| |
|
|
| |
llvm-svn: 55822
|
| |
|
|
|
|
|
|
| |
where RecordDecl or CXXRecordDecl was constructed, always with an argument of 'NULL' for the previous declaration.
The motivation behind this change is that chaining the RecordDecls is simply unnecessary. Once we create multiple RecordDecls for the same struct/union/class, clients that care about all the declarations of the same struct can build a back map by seeing which Decls refer to the same RecordType.
llvm-svn: 55821
|
| |
|
|
|
|
| |
- <rdar://problem/6156739>
llvm-svn: 55815
|
| |
|
|
|
|
|
| |
- Don't remove $BaseDir; may be unsafe
- Always create HTML directory with parents
llvm-svn: 55813
|
| |
|
|
| |
llvm-svn: 55812
|
| |
|
|
| |
llvm-svn: 55810
|
| |
|
|
| |
llvm-svn: 55805
|
| |
|
|
|
|
| |
- Patch via Thomas Clement, thanks!
llvm-svn: 55804
|
| |
|
|
|
|
| |
reported in PR 2763.
llvm-svn: 55801
|
| |
|
|
|
|
|
| |
- Within for loops, 'continue' should jump to a basic block containing the
increment code
llvm-svn: 55800
|
| |
|
|
|
|
| |
in a more obvious fashion.
llvm-svn: 55791
|
| |
|
|
|
|
| |
which are inherited from base clases or protocols.
llvm-svn: 55790
|
| |
|
|
|
|
|
|
| |
warnings)
currently clang passes all tests under valgrind with the leak checker disabled :P (and fails most otherwise)
llvm-svn: 55782
|
| |
|
|
|
|
|
| |
- Only set the environment variable 'CXX' if the user specifies --use-c++.
- Fix regression when setting LDPLUSPLUS: add a 'which' to determine the location of g++. This regression was pointed out by Jordan Breeding!
llvm-svn: 55780
|
| |
|
|
|
|
|
|
| |
check for block pointers.
Added a couple FIXME's wrt PointLikeType. If the author reads this, it would be great to get some background on this class (thanks in advance).
llvm-svn: 55778
|
| |
|
|
| |
llvm-svn: 55768
|
| |
|
|
| |
llvm-svn: 55767
|
| |
|
|
|
|
| |
spaces
llvm-svn: 55765
|