- Aug 07, 2008
-
-
Ted Kremenek authored
llvm-svn: 54436
-
Ted Kremenek authored
Cleanup some processing with DeclStmt, and gradually start using the internal BumpPtrAllocator to allocator more of CFG's data structures. llvm-svn: 54433
-
Ted Kremenek authored
llvm-svn: 54429
-
Ted Kremenek authored
llvm-svn: 54428
-
- Aug 06, 2008
-
-
Ted Kremenek authored
llvm-svn: 54423
-
Daniel Dunbar authored
- Change hardcoded assembly instructions to a use of 'opt' (still waiting for someone to yell at me for this). - Add some cases to cover behavior fixed by previous commit. llvm-svn: 54413
-
rdar://problem/6113807Steve Naroff authored
While this is a safe rewriter fix, there is still a need for some discussion (see report for more info). llvm-svn: 54412
-
Ted Kremenek authored
When serializing DeclStmt, encode a bit indicating whether or not the DeclStmt owns the Decl. This is an interim solution. llvm-svn: 54410
-
Daniel Dunbar authored
- PR2643 llvm-svn: 54397
-
Daniel Dunbar authored
type. - This generates somewhat less optimal code than before but this is not hard to rectify once stable (at the cost of slightly more complex code). - This currently always uses little-endian ordering of the bitfield. - This breaks the CodeGen/bitfield.c test because it was grepping for hard-coded assembly instructions. Will fix once a better test case is constructed (hard to do without execution). - This fixes SingleSource/UnitTests/2006-01-23-InitializedBitField.c and Regression/C/PR1386.c from the test suite. - <rdar://problem/6085090>, <rdar://problem/6094169> llvm-svn: 54395
-
Ted Kremenek authored
llvm-svn: 54393
-
Daniel Dunbar authored
- Changed EmitSub to work on all cases (arithmetic, ptr - int, ptr - ptr) so that implementation matches that of other operators. - Modify EmitCompoundAssign to compute and perform the appropriate casts of left, right, and result types for the assorted pointer arithmetic cases. - Fix EmitSub (ptr - int) case to negate the rhs *after* extension. This is critical when the rhs is unsigned (and needs extension). - This fixes cfrac. - <rdr://6115726> llvm-svn: 54392
-
Daniel Dunbar authored
scimark2 on Darwin. - Added Sema support for asm-label on variables, which I forgot before. - Update CodeGen to use GlobalDeclMap to determine if static Decls require emission (instead of LLVM module name lookup). Important since the Decl name and the LLVM module name can differ. - <rdar://problem/6116729> llvm-svn: 54388
-
Nico Weber authored
llvm-svn: 54383
-
Daniel Dunbar authored
having multiple bindings from all the possible decls which conceptually map to the same global). - This eliminates CodeGen depending on the LLVM module for name lookup. - This also eliminates the need for ReplaceMapValuesWith (hurrah). - This handles lookups for FunctionDecls correctly in the presence of aliases, this was previously broken. - WIP: Can still clean up & unify variable and function emission. llvm-svn: 54382
-
Nico Weber authored
llvm-svn: 54381
-
- Aug 05, 2008
-
-
Ted Kremenek authored
llvm-svn: 54373
-
Ted Kremenek authored
Added decl_iterator to DeclStmt to provide an abstract interface to iterate over the ScopedDecls of a DeclStmt. Updated a few clients of DeclStmt::getNextDeclarator() to use decl_iterator instead. Will update other clients after additional testing. llvm-svn: 54368
-
rdar://problem/5929344Steve Naroff authored
Finish fixing <rdar://problem/5929344> clang ObjC rewriter: "extern int __CFConstantStringClassReference[];" should be extern "C" llvm-svn: 54367
-
Ted Kremenek authored
llvm-svn: 54366
-
Nuno Lopes authored
llvm-svn: 54365
-
Ted Kremenek authored
Refactored driver logic for CodeGen into LLVMCodeGenWriter. This ASTConsumer layers on top of LLVMCodeGen (another existing ASTConsumer) to emit bitcode files to disk. This layering takes this logic out of clang.cpp and puts it directly into the ASTConsumer interface. The benefit is that now --emit-llvm works with both serialized ASTs and regular source files. llvm-svn: 54364
-
rdar://problem/6108119Steve Naroff authored
Fix <rdar://problem/6108119> clang ObjC rewriter: if no newline at end of input file, rewriter inserts #define on same line as closing brace llvm-svn: 54363
-
Daniel Dunbar authored
ActOnDeclarator. llvm-svn: 54353
-
Daniel Dunbar authored
llvm-svn: 54352
-
Daniel Dunbar authored
- Use -verify and added expected warnings for EXTWARN change. llvm-svn: 54342
-
-
Daniel Dunbar authored
- ActOnDeclarator now takes an additional parameter which is the AsmLabel if used. Its unfortunate that this bubbles up this high, but we cannot just lump it in as an attribute without mistakenly *accepting* it as an attribute. - The actual asm-label itself is, however, encoded as an AsmLabelAttr on the FunctionDecl. - Slightly improved parser error recovery on malformed asm-labels. - CodeGen support still missing... llvm-svn: 54339
-
Daniel Dunbar authored
- <rdar://problem/6122967> llvm-svn: 54338
-
Daniel Dunbar authored
- Like EXTENSION but always generates a warning (even without -pedantic). - Updated ptr -> int, int -> ptr, and incompatible cast warnings to be EXTWARN. - Other EXTENSION level diagnostics should be audited for upgrade. - Updated several test cases to fix code which produced unanticipated warnings. llvm-svn: 54335
-
Ted Kremenek authored
"the attached patch fixes some typos, 80 cols violations, etc. in comments." llvm-svn: 54328
-
- Aug 04, 2008
-
-
Daniel Dunbar authored
- clang was erroneously accepting address-of applied to lvalue expressions involving pointer arithmetic. - clang was erroneously rejecting address-of applied to deref expressions of pointer-typed variables. - Improved existing test case. - Fixes: <rdar://problem/6113867>, <rdar://problem/6080158> llvm-svn: 54326
-
Ted Kremenek authored
When results go to a auto-generated dir in /tmp, don't use randomized file names. Just output /tmp/scan-build-DATE-counter, where counter is an auto-incremented counter for runs produced that day. llvm-svn: 54325
-
Ted Kremenek authored
llvm-svn: 54324
-
Ted Kremenek authored
Recognize 'ccc-analyzer' as a build command some users may use. Treat it just like calling gcc. llvm-svn: 54323
-
Daniel Dunbar authored
llvm-svn: 54322
-
Ted Kremenek authored
Fix regression when invoking the MissingDealloc analysis: disable this check when in -fobjc-gc-only mode. llvm-svn: 54319
-
Daniel Dunbar authored
- Follows emission scheme used by llvm-gcc, i.e. invent an id for each label whose address is taken and replace each indirect goto by a switch to each possible target. - Currently we emit a switch for each indirect goto instead of merging them as llvm-gcc does. llvm-svn: 54318
-
Chris Lattner authored
Finally fix PR2189. This makes a fairly invasive but important change to move getAsArrayType into ASTContext instead of being a method on type. This is required because getAsArrayType(const AT), where AT is a typedef for "int[10]" needs to return ArrayType(const int, 10). Fixing this greatly simplifies getArrayDecayedType, which is a good sign. llvm-svn: 54317
-
- Aug 03, 2008
-
-
Ted Kremenek authored
llvm-svn: 54276
-