| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
| |
llvm-svn: 51508
|
| |
|
|
| |
llvm-svn: 51463
|
| |
|
|
|
|
|
|
|
| |
lib/CodeGen/CGExpr.cpp and to change include/clang/AST/Attr.h to
use its own enum for visibility types instead of using
llvm::GlobalValue::VisibilityTypes. These changes eliminate
dependencies in the AST library on LLVM's VMCore library.
llvm-svn: 51398
|
| |
|
|
| |
llvm-svn: 51392
|
| |
|
|
|
|
| |
the destruction of Decls and Stmts.
llvm-svn: 51385
|
| |
|
|
| |
llvm-svn: 51381
|
| |
|
|
| |
llvm-svn: 51380
|
| |
|
|
|
|
| |
memory).
llvm-svn: 51379
|
| |
|
|
|
|
|
| |
ASTs. This is a hack, but I haven't considered how we really
want to do this.
llvm-svn: 51364
|
| |
|
|
|
|
| |
we now iterate over the whole AST when we destroy it.
llvm-svn: 51363
|
| |
|
|
|
|
|
| |
(specifically, for TranslationUnits created from SerializationTest.cpp).
Fixes a double-free bug in the serialization tests.
llvm-svn: 51362
|
| |
|
|
| |
llvm-svn: 51322
|
| |
|
|
|
|
| |
initializers of EnumConstantDecls.
llvm-svn: 51299
|
| |
|
|
| |
llvm-svn: 51298
|
| |
|
|
|
|
|
|
| |
Fixed a bug in ParmVarDecl::param_end(): Handle the case where there are no
ParmVarDecls for a FunctionDecl, but its function prototype has formal arguments
(can happen with typedefs).
llvm-svn: 51297
|
| |
|
|
|
|
| |
declaration.
llvm-svn: 51294
|
| |
|
|
| |
llvm-svn: 51288
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) Sema::ParseAST now constructs a TranslationUnit object to own the top-level Decls, which releases the top-level Decls upon exiting ParseAST.
2) Bug fix: TranslationUnit::~TranslationUnit handles the case where a Decl is added more than once as a top-level Decl.
3) Decl::Destroy is now a virtual method, obviating the need for a special dispatch based on DeclKind.
3) FunctionDecl::Destroy now releases its Body using its Destroy method.
4) Added Stmt::Destroy and Stmt::DestroyChildren, which recursively delete the child ASTs of a Stmt and call their dstors. We may need to special case dstor/Destroy methods for particular Stmt subclasses that own other dynamically allocated objects besides AST nodes.
5) REGRESSION: We temporarily are not deallocating attributes; a FIXME is provided.
llvm-svn: 51286
|
| |
|
|
|
|
| |
subclasses of Stmt to recursively delete their child AST nodes.
llvm-svn: 51278
|
| |
|
|
|
|
| |
code).
llvm-svn: 51276
|
| |
|
|
| |
llvm-svn: 51190
|
| |
|
|
| |
llvm-svn: 51188
|
| |
|
|
|
|
|
|
|
|
| |
expressions. This appears to be a regression introduced in r51113 that caused
many test cases to fail (there is still a test case in the Analysis directory
that is failing):
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080512/005706.html
llvm-svn: 51164
|
| |
|
|
|
|
|
|
|
| |
expressing the full flexibility of the LLVM shufflevector instruction.
The expected immediate usage is in *mmintrin.h, so that they don't
depend on the mess of gcc-inherited (and not completely implemented)
shuffle builtins.
llvm-svn: 51113
|
| |
|
|
| |
llvm-svn: 51068
|
| |
|
|
| |
llvm-svn: 50980
|
| |
|
|
|
|
| |
Remove redundant assignment.
llvm-svn: 50978
|
| |
|
|
|
|
|
|
|
| |
ScopedDecl with the backpatcher, and *not* a local variable on the stack. The
value of DeclCtx gets filled in *later* by the backpatcher.
This fixes: http://llvm.org/bugs/show_bug.cgi?id=2308
llvm-svn: 50976
|
| |
|
|
| |
llvm-svn: 50945
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
vector of the same element type and half the width, with the high, low, even,
and odd elements respectively.
Allow member references to member references, so that .hi.hi gives you the high
quarter of a vector. This is fairly convenient syntax for some insert/extract
operations.
Remove some unnecessary methods/types in the ExtVectorElementExpr class.
llvm-svn: 50892
|
| |
|
|
|
|
|
| |
an implementation. This fixes couple of failing prperty tests
caused by my previous patch.
llvm-svn: 50830
|
| |
|
|
|
|
|
| |
properties. Couple of property tests will fail with this patch.
Will fix them next.
llvm-svn: 50818
|
| |
|
|
| |
llvm-svn: 50816
|
| |
|
|
| |
llvm-svn: 50815
|
| |
|
|
|
|
| |
properties declared in the protocol.
llvm-svn: 50662
|
| |
|
|
|
|
|
| |
Fix 'swapping' of attributes to not insert null values into the
DeclAttrs map.
llvm-svn: 50612
|
| |
|
|
|
|
|
| |
protocols into class's property list and performing semantics
on them for while doing so.
llvm-svn: 50587
|
| |
|
|
|
|
| |
expression.
llvm-svn: 50585
|
| |
|
|
|
|
| |
variadic methods (also did some cosmetic cleanups in the printing output).
llvm-svn: 50583
|
| |
|
|
|
|
|
|
| |
classname "fields". This saves us a pointer.
Implemented serialization for ObjCMessageExpr.
llvm-svn: 50528
|
| |
|
|
|
|
| |
the initializer rewrite I am doing).
llvm-svn: 50511
|
| |
|
|
|
|
|
|
|
| |
std::pair<CFGBlock*, CFGBlock*> that have an 8-byte alignment for use with
ProgramPoint. This fixes a bug reported by Argiris where using std::set<> on
Windows would result in a 4-byte alignment, not an 8-byte alignment.
Fixes: <rdar://problem/5892265>
llvm-svn: 50364
|
| |
|
|
|
|
|
|
|
| |
-NamespaceDecl for the AST
-Checks for name clashes between namespaces and tag/normal declarations.
This commit doesn't implement proper name lookup for namespaces.
llvm-svn: 50321
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
when it is constructed via deserialization. This is done by recording a flag
indicating that this is the case, and it deletes these objects by getting
the references stored in the ASTContext object. This fixes some memory
leaks that occurs when we deserialize translation units from bitcode files.
The rationale between having TranslationUnit sometimes own these objects and
sometimes not is that a TranslationUnit object can be constructed from
state generated by the parser (Preprocessor; semantic analyzer, etc.), and thus
in these cases won't own the IdentifierTable or Selectors, etc. During
deserialization, there is no Preprocessor, so somebody needs to own these
objects in order for them to be properly reclaimed.
llvm-svn: 50149
|
| |
|
|
|
|
| |
to print declaration from its AST.
llvm-svn: 50117
|
| |
|
|
|
|
|
|
|
|
|
| |
DeclContext *CtxDecl -> DeclContext *DeclCtx
DeclContext *CD -> DeclContext *DC
It makes the code more consistent."
Patch by Zhongxing Xu!
llvm-svn: 50105
|
| |
|
|
|
|
| |
derived class.
llvm-svn: 50074
|
| |
|
|
|
|
|
|
| |
Added iterators, methods to find property and categories.
Use them in doing semantic analysis on property implementation
declarations. Fixed typos.
llvm-svn: 50050
|
| |
|
|
| |
llvm-svn: 50021
|
| |
|
|
| |
llvm-svn: 49942
|