| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
| |
llvm-svn: 74581
|
| |
|
|
|
|
|
| |
are fewer template arguments than there are template parameters for
that function.
llvm-svn: 74578
|
| |
|
|
|
|
|
|
|
| |
substitute those template arguments into the function parameter types
prior to template argument deduction. There's still a bit of work to
do to make this work properly when only some of the template arguments
are specified.
llvm-svn: 74576
|
| |
|
|
|
|
| |
list.
llvm-svn: 74571
|
| |
|
|
|
|
|
| |
templates, such as make<int&>. These template-ids are only barely
functional for function calls; much more to come.
llvm-svn: 74563
|
| |
|
|
|
|
|
|
| |
TypedRegion. While we plan on removing this code at some point, it serves as a
good reference implementation for use with BasicStore until we are sure the new
CastRegion logic (in RegionStore.cpp) is correct.
llvm-svn: 74559
|
| |
|
|
|
|
|
|
|
| |
ParseDeclarationSpecifiers ... from ParseObjCTypeName)
Another case where we should use SmallVector::data() instead of taking the
address of element 0 of a SmallVector when the SmallVector has no elements.
llvm-svn: 74556
|
| |
|
|
|
|
| |
fields in the ctor-initializer list.
llvm-svn: 74554
|
| |
|
|
| |
llvm-svn: 74552
|
| |
|
|
|
|
| |
in ctor-initializer list.
llvm-svn: 74541
|
| |
|
|
|
|
|
|
|
|
|
|
| |
instantiation stack so that we provide a full instantiation
backtrace. Previously, we performed all of the instantiations implied
by the recursion, but each looked like a "top-level" instantiation.
The included test case tests the previous fix for the instantiation of
DeclRefExprs. Note that the "instantiated from" diagnostics still
don't tell us which template arguments we're instantiating with.
llvm-svn: 74540
|
| |
|
|
|
|
| |
'make test' passes now.
llvm-svn: 74539
|
| |
|
|
| |
llvm-svn: 74536
|
| |
|
|
| |
llvm-svn: 74535
|
| |
|
|
| |
llvm-svn: 74533
|
| |
|
|
|
|
|
|
| |
This unifies all the targets supported by an OS into a template.
It also cleans up the differences between the darwin targets.
Also __LP64__ wasn't needed for *BSD, since x86-64 target defines it anyway.
llvm-svn: 74532
|
| |
|
|
|
|
|
|
|
|
|
| |
"semantic analysis" part. Use the "semantic analysis" part when
performing template instantiation on a DeclRefExpr, rather than an ad
hoc list of rules to construct DeclRefExprs from the instantiation.
A test case for this change will come in with a large commit, which
illustrates what I was actually trying to work on.
llvm-svn: 74528
|
| |
|
|
|
|
|
| |
Mark the super region of the binding of block level expr in the Environment
as live.
llvm-svn: 74525
|
| |
|
|
|
|
|
|
|
|
|
| |
unknown for it.
Mark the super region of a live region as live, if the live region is pointed
to by a live pointer variable.
These fixes xfail_regionstore_wine_crash.c.
llvm-svn: 74524
|
| |
|
|
|
|
|
|
|
|
| |
DeclStmt would be dead before the DeclStmt.
For example:
int x = 0;
int y = x;
'x' would be dead before 'int y = x'.
llvm-svn: 74522
|
| |
|
|
| |
llvm-svn: 74521
|
| |
|
|
| |
llvm-svn: 74520
|
| |
|
|
| |
llvm-svn: 74517
|
| |
|
|
|
|
| |
create TypedViewRegion for it.
llvm-svn: 74516
|
| |
|
|
|
|
| |
David Majnemer!
llvm-svn: 74513
|
| |
|
|
|
|
|
| |
Remove ASTContext parameter from DeclContext's methods. This change cascaded down to other Decl's methods and changes to call sites started "escalating".
Timings using pre-tokenized "cocoa.h" showed only a ~1% increase in time run between and after this commit.
llvm-svn: 74506
|
| |
|
|
|
|
| |
It's not getASTContext() to avoid "getASTContext is ambiguous" compiler errors for subclasses of both Decl and DeclContext.
llvm-svn: 74505
|
| |
|
|
|
|
|
|
| |
subclasses.
Timings showed no significant difference before and after the commit.
llvm-svn: 74504
|
| |
|
|
| |
llvm-svn: 74503
|
| |
|
|
|
|
| |
TranslationUnitDecl.
llvm-svn: 74502
|
| |
|
|
|
|
|
|
|
| |
The implementations of these methods can Use Decl::getASTContext() to get the ASTContext.
This commit touches a lot of files since call sites for these methods are everywhere.
I used pre-tokenized "carbon.h" and "cocoa.h" headers to do some timings, and there was no real time difference between before the commit and after it.
llvm-svn: 74501
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This is simple enough, but then I thought it would be nice to make PrintingPolicy
get a LangOptions so that various things can key off "bool" and "C++" independently.
This spiraled out of control. There are many fixme's, but I think things are slightly
better than they were before.
One thing that can be improved: CFG should probably have an ASTContext pointer in it,
which would simplify its clients.
llvm-svn: 74493
|
| |
|
|
| |
llvm-svn: 74486
|
| |
|
|
| |
llvm-svn: 74481
|
| |
|
|
|
|
| |
list.
llvm-svn: 74480
|
| |
|
|
| |
llvm-svn: 74479
|
| |
|
|
|
|
| |
overloaded function decl.
llvm-svn: 74472
|
| |
|
|
| |
llvm-svn: 74467
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Track implicit instantiations vs. the not-yet-supported explicit
specializations
- Give implicit instantiations of function templates (and member
functions of class templates) linkonce_odr linkage.
- Improve name mangling for function template specializations,
including the template arguments of the instantiation and the return
type of the function.
Note that our name-mangling is improved, but not correct: we still
don't mangle substitutions, although the manglings we produce can be
demangled.
llvm-svn: 74466
|
| |
|
|
|
|
| |
in the ctor-initializer list. More to come.
llvm-svn: 74465
|
| |
|
|
| |
llvm-svn: 74460
|
| |
|
|
|
|
|
| |
redundant, implicit instantiations of function templates and provide a
place where we can hang function template specializations.
llvm-svn: 74454
|
| |
|
|
|
|
| |
- Patch by Jonathan Gray!
llvm-svn: 74453
|
| |
|
|
|
|
|
|
| |
-Introduce Decl::getASTContext() which returns the reference from the TranslationUnitDecl that it is contained in.
The general idea is that Decls can point to their own ASTContext so that it is no longer required to "manually" keep track and make sure that you pass the correct ASTContext to Decls' methods, e.g. methods like Decl::getAttrs should eventually not require a ASTContext parameter.
llvm-svn: 74434
|
| |
|
|
| |
llvm-svn: 74433
|
| |
|
|
|
|
| |
by pointer.
llvm-svn: 74432
|
| |
|
|
|
|
| |
FunctionTemplateSpecializationInfo, in DeclTemplate.h. No functionality change.
llvm-svn: 74431
|
| |
|
|
|
|
| |
Convert clients to use ASTContext::getObjCObjectPointerType().
llvm-svn: 74424
|
| |
|
|
| |
llvm-svn: 74419
|
| |
|
|
| |
llvm-svn: 74418
|