- Oct 12, 2008
-
-
Chris Lattner authored
llvm-svn: 57390
-
- Oct 10, 2008
-
-
Steve Naroff authored
Final phase of converting BlockDecls over to DeclContext. This is unfortunately a largish/complex diff, however it was necessry to pass all the current block tests. llvm-svn: 57337
-
Dale Johannesen authored
llvm-svn: 57332
-
- Oct 08, 2008
-
-
Steve Naroff authored
This required changes to attach the compound statement later on (like we do for functions). llvm-svn: 57304
-
Steve Naroff authored
- Modify BlockExpr to reference the BlockDecl. This is "cleanup" necessary to improve our lookup semantics for blocks (to fix <rdar://problem/6272905> clang block rewriter: parameter to function not imported into block?). Still some follow-up work to finish this (forthcoming). llvm-svn: 57298
-
Ted Kremenek authored
A little more tweaking with StmtIterator and SizeOfAlignofExpr. A recent commit actually introduced a regression, not fixed a bug. llvm-svn: 57282
-
Ted Kremenek authored
This also removes the ugly hack needed in CFG.cpp for subclassing DeclStmt to create a DeclStmt with one Decl*. llvm-svn: 57275
-
Ted Kremenek authored
Fixed a masked bug when iterating over the child expressions of SizeOfAlignOfTypeExpr. This bug was unmasked by recent changes to StmtIterator. llvm-svn: 57273
-
Ted Kremenek authored
Serialization for OwningDeclGroupRefs now works. llvm-svn: 57272
-
Ted Kremenek authored
llvm-svn: 57271
-
- Oct 07, 2008
-
-
Ted Kremenek authored
llvm-svn: 57222
-
Ted Kremenek authored
Modified DeclGroupRef to always load/store the internal pointer value as Decl*. This hopefully will obviate any concerns with violating strict type-aliasing issues. llvm-svn: 57213
-
- Oct 06, 2008
-
-
Ted Kremenek authored
llvm-svn: 57206
-
Ted Kremenek authored
This patch precedes removing getDecl() DeclStmt::entirely. llvm-svn: 57205
-
Ted Kremenek authored
llvm-svn: 57204
-
Ted Kremenek authored
Added PrintRawDeclStmt; use this method to print out DeclStmt instead of using PrintRawDecl (which falsely assumes DeclStmts have only one Decl). llvm-svn: 57191
-
Ted Kremenek authored
llvm-svn: 57190
-
Chris Lattner authored
llvm-svn: 57162
-
Chris Lattner authored
which is checking for something that can be inconsistent with what we can constant fold. llvm-svn: 57159
-
Chris Lattner authored
interface into the constant folding interface. llvm-svn: 57158
-
Chris Lattner authored
llvm-svn: 57157
-
Chris Lattner authored
llvm-svn: 57154
-
Chris Lattner authored
__builtin_constant_p properly, and add some scaffolding for FloatExprEvaluator to eventually handle huge_val and inf. llvm-svn: 57152
-
Chris Lattner authored
code. llvm-svn: 57151
-
Chris Lattner authored
llvm-svn: 57149
-
- Oct 05, 2008
-
-
Chris Lattner authored
llvm-svn: 57119
-
Daniel Dunbar authored
- Print size as number of elements times "sizeof(elt type)", not perfect but better than just printing the completely wrong type. llvm-svn: 57100
-
- Oct 04, 2008
-
-
Zhongxing Xu authored
llvm-svn: 57041
-
- Oct 03, 2008
-
-
Daniel Dunbar authored
llvm-svn: 56993
-
Daniel Dunbar authored
llvm-svn: 56992
-
Steve Naroff authored
This is a temporary solution to help with the block rewriter (though it certainly has general utility). Once DeclGroup's are implemented, this SourceLocation should be stored with it (since it applies to all the decls). llvm-svn: 56985
-
Daniel Dunbar authored
- Enabled for builtins which are always constant expressions (__builtin_huge_val*, __builtin_inf*, __builtin_constant_p, __builtin_classify_type, __builtin___CFStringMakeConstantString). Added Builtin::Context::isConstantExpr. - Currently overly simply interface which only works for builtins whose constantexprness does not depend on their arguments. CallExpr::isBuiltinConstantExpr now takes an ASTContext argument. llvm-svn: 56983
-
- Sep 30, 2008
-
-
Chris Lattner authored
fixes problems handling references of va_list, which happens on x86_64. This fixes PR2841 and rdar://6252231 llvm-svn: 56809
-
- Sep 28, 2008
-
-
rdar://6252231Chris Lattner authored
by decaying __builtin_va_list's type when forming builtins. On x86-64 (and other targets) __builtin_va_list is a typedef for an array. llvm-svn: 56768
-
- Sep 27, 2008
-
-
Zhongxing Xu authored
llvm-svn: 56749
-
Ted Kremenek authored
Internally store the body of a BlockExpr using a Stmt* instead of a CompoundStmt*, and use the getBody() method to do the appropriate checking. This both removes the type-punning warnings in Expr.cpp and also makes BlockExpr have more consistency checks against modifications to its body (via StmtIterator). llvm-svn: 56710
-
Ted Kremenek authored
Use a union instead of a bunch of magic casts to implement a variant. This removes the type-punning errors for DeclGroup. llvm-svn: 56708
-
Ted Kremenek authored
llvm-svn: 56706
-
- Sep 26, 2008
-
-
Ted Kremenek authored
llvm-svn: 56672
-
Ted Kremenek authored
Move VLA processing logic from LiveVariables to CFG construction. This way all dataflow analyses "see" the VLA size expressions. llvm-svn: 56655
-