Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Make output files binary mode for -emit-llvm-bc | Christopher Lamb | 2007-12-24 | 1 | -2/+4 | |
| | | | | llvm-svn: 45348 | |||||
* | Almost the best possible handling of stdin/stdout for llvm-emit-bc! | Christopher Lamb | 2007-12-24 | 1 | -6/+10 | |
| | | | | llvm-svn: 45346 | |||||
* | Better handing of stdin/stdout for -emit-llvm-bc | Christopher Lamb | 2007-12-24 | 1 | -3/+3 | |
| | | | | llvm-svn: 45345 | |||||
* | Allow bitcode output to be redirected to stdout. | Christopher Lamb | 2007-12-24 | 1 | -1/+7 | |
| | | | | llvm-svn: 45340 | |||||
* | Implement -emit-llvm-bc option | Seo Sanghyeon | 2007-12-24 | 3 | -7/+62 | |
| | | | | llvm-svn: 45339 | |||||
* | remove use of alloca. | Chris Lattner | 2007-12-23 | 1 | -8/+9 | |
| | | | | llvm-svn: 45329 | |||||
* | Unbreak mingw build | Anton Korobeynikov | 2007-12-23 | 1 | -0/+1 | |
| | | | | llvm-svn: 45328 | |||||
* | Directory restructing of Analysis files. | Ted Kremenek | 2007-12-21 | 1 | -1/+1 | |
| | | | | | | | | | | | Created include/clang/Analysis/Analyses directory. - Moved LiveVariables.h and UninitializedValues.h into this dir. Moved ExprDeclBitVector.h into Analysis/Support. Updated all clients who use these headers to reflect the new paths. llvm-svn: 45292 | |||||
* | Converted uses of scoped_ptr to OwningPtr. | Ted Kremenek | 2007-12-20 | 3 | -15/+17 | |
| | | | | llvm-svn: 45265 | |||||
* | Created initial implementation of "BuildSerializer", and ASTConsumer | Ted Kremenek | 2007-12-20 | 1 | -2/+39 | |
| | | | | | | | which serializes ASTs to a common output directory. This ASTConsumer is invoked using a combination of "-o" and "-serialize" from the driver. llvm-svn: 45241 | |||||
* | Split serialization ASTConsumers into two consumers: SingleFileSerializer and | Ted Kremenek | 2007-12-19 | 2 | -40/+79 | |
| | | | | | | | | BuildSerializer. The former serializes a single translation unit to a corresponding .ast file. The second serializes ASTs to a common emission direction. The latter is not fully implemented yet. llvm-svn: 45232 | |||||
* | Added methods createMainFileID() and createMainFileIDForMemBuffer() to | Ted Kremenek | 2007-12-19 | 1 | -16/+8 | |
| | | | | | | | SourceManager to allow SourceManager to directly intern the MainFileID when it is created. Removed setMainFileID(). llvm-svn: 45231 | |||||
* | Interned MainFileID within SourceManager. Since SourceManager is referenced by | Ted Kremenek | 2007-12-19 | 7 | -37/+34 | |
| | | | | | | | | | both Preprocessor and ASTContext, we no longer need to explicitly pass MainFileID around in function calls that also pass either Preprocessor or ASTContext. This resulted in some nice cleanups in the ASTConsumers and the driver. llvm-svn: 45228 | |||||
* | Typo fix. | Ted Kremenek | 2007-12-19 | 1 | -3/+2 | |
| | | | | llvm-svn: 45227 | |||||
* | Added storage of the FileID of the the main source file of a translation unit | Ted Kremenek | 2007-12-19 | 1 | -1/+4 | |
| | | | | | | in SourceManager. llvm-svn: 45225 | |||||
* | Removed "SourceFile" from TranslationUnit. This same information will (soon) | Ted Kremenek | 2007-12-19 | 4 | -26/+36 | |
| | | | | | | | be available by querying the SourceManager within the ASTContext referenced by the TranslationUnit. llvm-svn: 45223 | |||||
* | Cleaned up "-o" option to print "-o=<path>" instead of "-o=<string>" when | Ted Kremenek | 2007-12-19 | 1 | -0/+1 | |
| | | | | | | doing clang --help. llvm-svn: 45215 | |||||
* | Added "-o" option to driver. ASTConsumers will need to be gradually | Ted Kremenek | 2007-12-19 | 1 | -1/+6 | |
| | | | | | | | | rewired to utilize this option. Renamed option --serialize-ast --serialize. llvm-svn: 45213 | |||||
* | Removed storing inode and device number in TranslationUnit. | Ted Kremenek | 2007-12-19 | 4 | -28/+37 | |
| | | | | | | | | | | Added "SourceFile" string to TranslationUnit to record corresponding source file. Updated serialization of TranslationUnits and logic in the driver to correctly pass the source file information to the serializer. llvm-svn: 45211 | |||||
* | Soften the macro rewrite error to a warning (and change the text). | Steve Naroff | 2007-12-19 | 1 | -32/+16 | |
| | | | | llvm-svn: 45209 | |||||
* | Moved generation of the name of the serialized AST file into | Ted Kremenek | 2007-12-19 | 3 | -16/+16 | |
| | | | | | | CreateASTSerializer. llvm-svn: 45201 | |||||
* | Emit errors when attempting to rewrite ObjC expressions that originate from ↵ | Steve Naroff | 2007-12-19 | 1 | -7/+63 | |
| | | | | | | | | a macro expansion. We plan on fixing this and removing this restriction after the break... llvm-svn: 45200 | |||||
* | Moved ReadBitcodeFile and EmitBitcodeFile out of TranslationUnit and made them | Ted Kremenek | 2007-12-18 | 3 | -4/+4 | |
| | | | | | | | the standalone functions ReadASTBitcodeFile and EmitASTBitcodeFile respectively. llvm-svn: 45180 | |||||
* | Fixed broken includes introduced by recent (incomplete) patch to | Ted Kremenek | 2007-12-18 | 1 | -1/+1 | |
| | | | | | | TranslationUnit. llvm-svn: 45177 | |||||
* | Moved TranslationUnit from Driver to AST library. | Ted Kremenek | 2007-12-18 | 4 | -313/+2 | |
| | | | | llvm-svn: 45175 | |||||
* | Refactoring work. ObjcQualifiedIdType is now derived from 'Type'. | Fariborz Jahanian | 2007-12-18 | 1 | -7/+16 | |
| | | | | llvm-svn: 45174 | |||||
* | Patch to implemented objective-c's dynamic object pointer qualified with | Fariborz Jahanian | 2007-12-17 | 1 | -6/+23 | |
| | | | | | | the protocol list (id<P,...> types). llvm-svn: 45121 | |||||
* | Start reading the headermap header, drop the 'errorstr' argument to | Chris Lattner | 2007-12-17 | 1 | -10/+2 | |
| | | | | | | the create method. llvm-svn: 45109 | |||||
* | Also fixed similar regression for class methods, as well as more indentations. | Fariborz Jahanian | 2007-12-17 | 1 | -4/+7 | |
| | | | | llvm-svn: 45107 | |||||
* | Sink getName into DirectoryLookup to simplify the client in clang. | Chris Lattner | 2007-12-17 | 1 | -5/+6 | |
| | | | | llvm-svn: 45106 | |||||
* | Fixed a regression caused by refactoring of some meta-data generation ↵ | Fariborz Jahanian | 2007-12-17 | 1 | -15/+18 | |
| | | | | | | | | routines using iteratgors. Also fixed indentation problems. llvm-svn: 45105 | |||||
* | Fixed 80 col violation. | Ted Kremenek | 2007-12-17 | 1 | -1/+2 | |
| | | | | llvm-svn: 45104 | |||||
* | Added driver option -Wno-format-nonliteral to silence format string related | Ted Kremenek | 2007-12-17 | 1 | -0/+9 | |
| | | | | | | | | | warnings. This flag is the inverse of to GCC's -Wformat-nonliteral option (in the clang driver, these warnings are on by default). Patch provided by Shantonu Sen. llvm-svn: 45103 | |||||
* | Unbreak -v with framework paths. Patch by Shantonu Sen. | Chris Lattner | 2007-12-17 | 1 | -5/+10 | |
| | | | | llvm-svn: 45102 | |||||
* | as it turns out, frameworks and headermaps are orthogonal. Make this so in | Chris Lattner | 2007-12-17 | 1 | -16/+28 | |
| | | | | | | | the internal representation. This also fixes a bug where -I foo -F foo would not search foo as both a normal and framework include dir. llvm-svn: 45092 | |||||
* | add a portability fixme. | Chris Lattner | 2007-12-17 | 1 | -0/+2 | |
| | | | | llvm-svn: 45091 | |||||
* | teach RemoveDuplicates about header maps. | Chris Lattner | 2007-12-17 | 1 | -4/+19 | |
| | | | | llvm-svn: 45090 | |||||
* | Step #1 in adding headermap support to clang. | Chris Lattner | 2007-12-17 | 1 | -21/+42 | |
| | | | | llvm-svn: 45089 | |||||
* | rearrange some code and make it more efficient. | Chris Lattner | 2007-12-17 | 1 | -17/+23 | |
| | | | | llvm-svn: 45087 | |||||
* | swtich to smallptrset, which is more efficient than std::set. | Chris Lattner | 2007-12-15 | 1 | -2/+4 | |
| | | | | llvm-svn: 45065 | |||||
* | make clang -v output more similar to gcc's -v output. | Chris Lattner | 2007-12-15 | 1 | -1/+5 | |
| | | | | llvm-svn: 45064 | |||||
* | simplify the interfaces to ProcessInputFile and InitializePreprocessor | Chris Lattner | 2007-12-15 | 3 | -25/+13 | |
| | | | | llvm-svn: 45060 | |||||
* | - Remove getInstanceMethods/getClassMethods API on ObjcInterfaceDecl, ↵ | Steve Naroff | 2007-12-14 | 1 | -54/+52 | |
| | | | | | | | | | | ObjcProtocolDecl, and ObjcCategoryDecl. These methods are replaced by the respective iterators on each class. - Add getInstanceMethodForSelector to ObjcInterfaceDecl, ObjcProtocolDecl, and ObjcCatgoryDecl. This hook will do a "shallow" lookup. This is a convenience method that reducing some of the iterator usage. - Various changes to convert all clients to the above API's... llvm-svn: 45046 | |||||
* | Add check in the driver to see if a serialized AST file has been successfully | Ted Kremenek | 2007-12-13 | 1 | -1/+8 | |
| | | | | | | deserialized. llvm-svn: 45006 | |||||
* | Changed set of top-level decls from a list to a vector. | Ted Kremenek | 2007-12-13 | 2 | -5/+5 | |
| | | | | llvm-svn: 45005 | |||||
* | Changed -serialize-ast to not create a temporary directory, but instead | Ted Kremenek | 2007-12-13 | 2 | -9/+9 | |
| | | | | | | | | create a .ast file in the current working directory. This mirrors the behavior of the -c option for gcc. Later we should add the ability to write the serialized file anywhere. llvm-svn: 45004 | |||||
* | Set target data layout info in module. | Chris Lattner | 2007-12-13 | 1 | -0/+1 | |
| | | | | llvm-svn: 45003 | |||||
* | Implemented -serialize-ast option for the driver. This is not really tested | Ted Kremenek | 2007-12-13 | 5 | -8/+73 | |
| | | | | | | and is a work in progress. llvm-svn: 44967 | |||||
* | Implemented prototype mode where the driver can operate on serialized ASTs | Ted Kremenek | 2007-12-12 | 2 | -50/+102 | |
| | | | | | | instead of source files. llvm-svn: 44962 | |||||
* | TargetInfo no longer includes a reference to SourceManager. | Ted Kremenek | 2007-12-12 | 9 | -51/+46 | |
| | | | | | | | | | | | | | | | Moved all clients of Diagnostics to use FullSourceLoc instead of SourceLocation. Added many utility methods to FullSourceLoc to provide shorthand for: FullLoc.getManager().someMethod(FullLoc.getLocation()); instead we have: FullLoc.someMethod(); Modified TextDiagnostics (and related classes) to use this short-hand. llvm-svn: 44957 |