Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Some cleanup and refactoring of rewriter. | Fariborz Jahanian | 2009-12-23 | 1 | -4/+26 |
| | | | | llvm-svn: 92049 | ||||
* | This patch concludes rewriteing of __block variables to allow | Fariborz Jahanian | 2009-12-23 | 1 | -2/+10 |
| | | | | | | a small test case using Block_copy(...) API to pass. llvm-svn: 92038 | ||||
* | Removed a FIXME comment. | Fariborz Jahanian | 2009-12-23 | 1 | -3/+2 |
| | | | | llvm-svn: 92028 | ||||
* | More rewriting of __block variables. | Fariborz Jahanian | 2009-12-23 | 1 | -4/+18 |
| | | | | llvm-svn: 92027 | ||||
* | switch -Werror/-Wfatal-errors error conditions to use diagnostics instead | Chris Lattner | 2009-12-23 | 1 | -9/+7 |
| | | | | | | of printf, patch by Christian Adaker! llvm-svn: 92019 | ||||
* | Remove RewriteBlocks. It has been superseded by RewriteObjC | Kovarththanan Rajaratnam | 2009-12-23 | 4 | -1161/+0 |
| | | | | llvm-svn: 92014 | ||||
* | Add support for handling initializers in RewriteObjC::RewriteByRefVar(). | Steve Naroff | 2009-12-23 | 1 | -5/+16 |
| | | | | | | As the FIXME indicates, RewriteByRefVar() won't work for multiple declarators (in general). I've discussed this with Fariborz and he is aware of the limitation. llvm-svn: 92007 | ||||
* | Register call inliner as the last checker. | Zhongxing Xu | 2009-12-23 | 1 | -2/+3 |
| | | | | llvm-svn: 91992 | ||||
* | Migrate the call inliner to the Checker interface. | Zhongxing Xu | 2009-12-23 | 1 | -5/+34 |
| | | | | llvm-svn: 91991 | ||||
* | Patch to do more rewrite of __block variables. | Fariborz Jahanian | 2009-12-23 | 1 | -11/+87 |
| | | | | | | Still WIP. llvm-svn: 91977 | ||||
* | implement -W[no-]fatal-errors, patch by Christian Adåker! | Chris Lattner | 2009-12-22 | 1 | -2/+25 |
| | | | | llvm-svn: 91938 | ||||
* | Serialize the NoReturn bit on FunctionTypes for precompiled headers | Douglas Gregor | 2009-12-22 | 2 | -4/+6 |
| | | | | llvm-svn: 91911 | ||||
* | Work around PR5514. | Anders Carlsson | 2009-12-22 | 1 | -1/+2 |
| | | | | llvm-svn: 91891 | ||||
* | Template code for rewrite of __block variables - wip. | Fariborz Jahanian | 2009-12-22 | 1 | -0/+7 |
| | | | | llvm-svn: 91865 | ||||
* | Providing support for rewriting of block copy/dispose of | Fariborz Jahanian | 2009-12-21 | 1 | -4/+11 |
| | | | | | | imported block variables. WIP. llvm-svn: 91856 | ||||
* | Fix a few MSVC warnings. | Daniel Dunbar | 2009-12-18 | 1 | -4/+4 |
| | | | | llvm-svn: 91714 | ||||
* | Debian has x86_64-linux-gnu, not x86_64-pc-linux-gnu, so add it. | Torok Edwin | 2009-12-18 | 1 | -0/+3 |
| | | | | llvm-svn: 91698 | ||||
* | Move the 4.4.2 c++ include search to the top, otherwise it was picking the 4.1.3 | Torok Edwin | 2009-12-18 | 1 | -5/+5 |
| | | | | | | | dirs on my system. Which is wrong, since it was missing the x86_64-pc-linux-gnu suffix. llvm-svn: 91694 | ||||
* | clang -cc1: Rename -mcpu to -target-cpu to match other target options and ↵ | Daniel Dunbar | 2009-12-18 | 1 | -2/+2 |
| | | | | | | not alias driver/backend option. llvm-svn: 91671 | ||||
* | Add -dwarf-debug-flags, which provides a way to embed the cc1 level options used | Daniel Dunbar | 2009-12-18 | 1 | -0/+5 |
| | | | | | | | | to compile a translation unit into the debug info for that file. - Used by parts of Darwin build process to check compiler flags, etc. - <rdar://problem/7256886> clang does not emit AT_APPLE_flags llvm-svn: 91661 | ||||
* | Implemented rewriting of invocation of a block ivar. | Fariborz Jahanian | 2009-12-18 | 1 | -0/+2 |
| | | | | | | | (radar 7482224). llvm-svn: 91652 | ||||
* | Fix -fdollars-in-identifiers Clang translation. | Daniel Dunbar | 2009-12-16 | 1 | -5/+4 |
| | | | | llvm-svn: 91562 | ||||
* | When value-initializing a class with no user-defined constructors but | Douglas Gregor | 2009-12-16 | 2 | -0/+2 |
| | | | | | | | with a non-trivial default constructor, zero-initialize the storage and then call the default constructor. Fixes PR5800. llvm-svn: 91548 | ||||
* | implement PR5654: add -fassume-sane-operator-new, which is enabled by ↵ | Nuno Lopes | 2009-12-16 | 1 | -0/+3 |
| | | | | | | | | default, and adds the malloc attribute to the global function new() and to the overloaded new operators. feel free to chage the name to this lengthy argument llvm-svn: 91543 | ||||
* | Expose C++ methods to GRExprEngine. | Zhongxing Xu | 2009-12-16 | 1 | -0/+14 |
| | | | | llvm-svn: 91506 | ||||
* | Switch the C++ new expression over to InitializationSequence, rather | Douglas Gregor | 2009-12-16 | 2 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | | than using its own partial implementation of initialization. Switched CheckInitializerTypes over to InitializedEntity/InitializationKind, to help move us closer to InitializationSequence. Added InitializedEntity::getName() to retrieve the name of the entity, for diagnostics that care about such things. Implemented support for default initialization in InitializationSequence. Clean up the determination of the "source expressions" for an initialization sequence in InitializationSequence::Perform. Taught CXXConstructExpr to store more location information. llvm-svn: 91492 | ||||
* | Implement conditional block invocation rewrite | Fariborz Jahanian | 2009-12-15 | 1 | -12/+28 |
| | | | | | | and some clean up and a block rewriter test. llvm-svn: 91435 | ||||
* | Add comments. | Zhongxing Xu | 2009-12-15 | 1 | -1/+2 |
| | | | | llvm-svn: 91430 | ||||
* | Remove displayProgress parameter. | Zhongxing Xu | 2009-12-15 | 1 | -1/+0 |
| | | | | llvm-svn: 91429 | ||||
* | Add -resource-dir to clang -cc1, this allows the base directory for compiler | Daniel Dunbar | 2009-12-15 | 3 | -15/+11 |
| | | | | | | | resources (e.g., /usr/lib/clang/1.1) to be passed on the command line instead of computed. llvm-svn: 91370 | ||||
* | Lift builtin-include-path logic out of ASTUnit::LoadFromCommandLine and fix ↵ | Daniel Dunbar | 2009-12-13 | 1 | -10/+7 |
| | | | | | | CIndex to pass in the right directory (previously it was using the path to the main executable, which generally is wrong). llvm-svn: 91238 | ||||
* | CompilerInvocation: Move builtin-include-path logic out of ↵ | Daniel Dunbar | 2009-12-13 | 3 | -13/+16 |
| | | | | | | CompilerInvocation::CreateFromArgs. llvm-svn: 91237 | ||||
* | Backend: Switch to using TargetOptions or TargetMachine to set some options ↵ | Daniel Dunbar | 2009-12-12 | 1 | -20/+40 |
| | | | | | | instead of llvm::cl. llvm-svn: 91229 | ||||
* | Un-namespace-qualify llvm_unreachable. It's a macro, so the qualification gave | Jeffrey Yasskin | 2009-12-12 | 4 | -10/+10 |
| | | | | | | no extra safety anyway. llvm-svn: 91207 | ||||
* | Fix for PR4642: move work in HTMLPrinter out of the destructor. | Eli Friedman | 2009-12-12 | 1 | -2/+2 |
| | | | | llvm-svn: 91205 | ||||
* | Implement runtime checks for undefined behavior. WIP. | Mike Stump | 2009-12-12 | 3 | -0/+7 |
| | | | | | | | | | | | | | This implements a new flag -fcatch-undefined-behavior. The flag turns on additional runtime checks for: T a[I]; a[i] abort when i < 0 or i >= I. Future stuff includes shifts by >= bitwidth amounts. llvm-svn: 91198 | ||||
* | We should only scan for nested blocks if we are analyzing the body of a ↵ | Ted Kremenek | 2009-12-12 | 1 | -1/+1 |
| | | | | | | function/method. llvm-svn: 91196 | ||||
* | Update docs/comments/utils/examples to refer to clang -cc1 instead of clang-cc. | Daniel Dunbar | 2009-12-11 | 1 | -1/+1 |
| | | | | llvm-svn: 91176 | ||||
* | spread 'const' love to some variables. this considerably reduces the amount ↵ | Nuno Lopes | 2009-12-10 | 1 | -1/+1 |
| | | | | | | of dirty data around. llvm-svn: 91002 | ||||
* | First pass at implementing C++ enum semantics: calculate (and store) an | John McCall | 2009-12-09 | 2 | -0/+2 |
| | | | | | | | | | | | | "integer promotion" type associated with an enum decl, and use this type to determine which type to promote to. This type obeys C++ [conv.prom]p2 and is therefore generally signed unless the range of the enumerators forces it to be unsigned. Kills off a lot of false positives from -Wsign-compare in C++, addressing rdar://7455616 llvm-svn: 90965 | ||||
* | Fix crash in DisplayFunction(). ObjCInterfaceDecls can also get passed to ↵ | Ted Kremenek | 2009-12-09 | 1 | -8/+5 |
| | | | | | | this function, but we don't want to display them. llvm-svn: 90944 | ||||
* | Neil points out that this could be simplified, do it. | Chris Lattner | 2009-12-09 | 1 | -15/+9 |
| | | | | llvm-svn: 90927 | ||||
* | Increase inlining threshold at -O3, to match llvm-gcc. | Daniel Dunbar | 2009-12-08 | 1 | -2/+8 |
| | | | | llvm-svn: 90897 | ||||
* | Twinify InitHeaderSearch::AddPath and use it in C++ include path generation. | Benjamin Kramer | 2009-12-08 | 1 | -21/+23 |
| | | | | llvm-svn: 90853 | ||||
* | Use StringRefs in InitHeaderSearch::AddDelimitedPaths. | Benjamin Kramer | 2009-12-08 | 1 | -15/+15 |
| | | | | llvm-svn: 90852 | ||||
* | DeclRefExpr stores a ValueDecl internally. | John McCall | 2009-12-08 | 1 | -1/+1 |
| | | | | | | Template instantiation can re-use DeclRefExprs. llvm-svn: 90848 | ||||
* | Small compatibility fix for -print-decl-contexts. | Eli Friedman | 2009-12-08 | 1 | -0/+5 |
| | | | | llvm-svn: 90838 | ||||
* | Remove several .c_str() to be forward-compatible with StringRef. | Jeffrey Yasskin | 2009-12-08 | 1 | -2/+2 |
| | | | | llvm-svn: 90822 | ||||
* | Add clang-cc option '-analyzer-opt-analyze-nested-blocks' to treat block ↵ | Ted Kremenek | 2009-12-07 | 2 | -9/+38 |
| | | | | | | literals as an entry point for analyzer checks. llvm-svn: 90810 | ||||
* | add fedora 12 include path | Nuno Lopes | 2009-12-07 | 1 | -19/+23 |
| | | | | llvm-svn: 90772 |