summaryrefslogtreecommitdiffstats
path: root/clang/Driver
Commit message (Collapse)AuthorAgeFilesLines
...
* Make output files binary mode for -emit-llvm-bcChristopher Lamb2007-12-241-2/+4
| | | | llvm-svn: 45348
* Almost the best possible handling of stdin/stdout for llvm-emit-bc!Christopher Lamb2007-12-241-6/+10
| | | | llvm-svn: 45346
* Better handing of stdin/stdout for -emit-llvm-bcChristopher Lamb2007-12-241-3/+3
| | | | llvm-svn: 45345
* Allow bitcode output to be redirected to stdout.Christopher Lamb2007-12-241-1/+7
| | | | llvm-svn: 45340
* Implement -emit-llvm-bc optionSeo Sanghyeon2007-12-243-7/+62
| | | | llvm-svn: 45339
* remove use of alloca.Chris Lattner2007-12-231-8/+9
| | | | llvm-svn: 45329
* Unbreak mingw buildAnton Korobeynikov2007-12-231-0/+1
| | | | llvm-svn: 45328
* Directory restructing of Analysis files.Ted Kremenek2007-12-211-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 Kremenek2007-12-203-15/+17
| | | | llvm-svn: 45265
* Created initial implementation of "BuildSerializer", and ASTConsumerTed Kremenek2007-12-201-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 andTed Kremenek2007-12-192-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() toTed Kremenek2007-12-191-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 byTed Kremenek2007-12-197-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 Kremenek2007-12-191-3/+2
| | | | llvm-svn: 45227
* Added storage of the FileID of the the main source file of a translation unitTed Kremenek2007-12-191-1/+4
| | | | | | in SourceManager. llvm-svn: 45225
* Removed "SourceFile" from TranslationUnit. This same information will (soon)Ted Kremenek2007-12-194-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>" whenTed Kremenek2007-12-191-0/+1
| | | | | | doing clang --help. llvm-svn: 45215
* Added "-o" option to driver. ASTConsumers will need to be graduallyTed Kremenek2007-12-191-1/+6
| | | | | | | | rewired to utilize this option. Renamed option --serialize-ast --serialize. llvm-svn: 45213
* Removed storing inode and device number in TranslationUnit.Ted Kremenek2007-12-194-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 Naroff2007-12-191-32/+16
| | | | llvm-svn: 45209
* Moved generation of the name of the serialized AST file intoTed Kremenek2007-12-193-16/+16
| | | | | | CreateASTSerializer. llvm-svn: 45201
* Emit errors when attempting to rewrite ObjC expressions that originate from ↵Steve Naroff2007-12-191-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 themTed Kremenek2007-12-183-4/+4
| | | | | | | the standalone functions ReadASTBitcodeFile and EmitASTBitcodeFile respectively. llvm-svn: 45180
* Fixed broken includes introduced by recent (incomplete) patch toTed Kremenek2007-12-181-1/+1
| | | | | | TranslationUnit. llvm-svn: 45177
* Moved TranslationUnit from Driver to AST library.Ted Kremenek2007-12-184-313/+2
| | | | llvm-svn: 45175
* Refactoring work. ObjcQualifiedIdType is now derived from 'Type'.Fariborz Jahanian2007-12-181-7/+16
| | | | llvm-svn: 45174
* Patch to implemented objective-c's dynamic object pointer qualified withFariborz Jahanian2007-12-171-6/+23
| | | | | | the protocol list (id<P,...> types). llvm-svn: 45121
* Start reading the headermap header, drop the 'errorstr' argument toChris Lattner2007-12-171-10/+2
| | | | | | the create method. llvm-svn: 45109
* Also fixed similar regression for class methods, as well as more indentations.Fariborz Jahanian2007-12-171-4/+7
| | | | llvm-svn: 45107
* Sink getName into DirectoryLookup to simplify the client in clang.Chris Lattner2007-12-171-5/+6
| | | | llvm-svn: 45106
* Fixed a regression caused by refactoring of some meta-data generation ↵Fariborz Jahanian2007-12-171-15/+18
| | | | | | | | routines using iteratgors. Also fixed indentation problems. llvm-svn: 45105
* Fixed 80 col violation.Ted Kremenek2007-12-171-1/+2
| | | | llvm-svn: 45104
* Added driver option -Wno-format-nonliteral to silence format string relatedTed Kremenek2007-12-171-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 Lattner2007-12-171-5/+10
| | | | llvm-svn: 45102
* as it turns out, frameworks and headermaps are orthogonal. Make this so inChris Lattner2007-12-171-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 Lattner2007-12-171-0/+2
| | | | llvm-svn: 45091
* teach RemoveDuplicates about header maps.Chris Lattner2007-12-171-4/+19
| | | | llvm-svn: 45090
* Step #1 in adding headermap support to clang.Chris Lattner2007-12-171-21/+42
| | | | llvm-svn: 45089
* rearrange some code and make it more efficient.Chris Lattner2007-12-171-17/+23
| | | | llvm-svn: 45087
* swtich to smallptrset, which is more efficient than std::set.Chris Lattner2007-12-151-2/+4
| | | | llvm-svn: 45065
* make clang -v output more similar to gcc's -v output.Chris Lattner2007-12-151-1/+5
| | | | llvm-svn: 45064
* simplify the interfaces to ProcessInputFile and InitializePreprocessorChris Lattner2007-12-153-25/+13
| | | | llvm-svn: 45060
* - Remove getInstanceMethods/getClassMethods API on ObjcInterfaceDecl, ↵Steve Naroff2007-12-141-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 successfullyTed Kremenek2007-12-131-1/+8
| | | | | | deserialized. llvm-svn: 45006
* Changed set of top-level decls from a list to a vector.Ted Kremenek2007-12-132-5/+5
| | | | llvm-svn: 45005
* Changed -serialize-ast to not create a temporary directory, but insteadTed Kremenek2007-12-132-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 Lattner2007-12-131-0/+1
| | | | llvm-svn: 45003
* Implemented -serialize-ast option for the driver. This is not really testedTed Kremenek2007-12-135-8/+73
| | | | | | and is a work in progress. llvm-svn: 44967
* Implemented prototype mode where the driver can operate on serialized ASTsTed Kremenek2007-12-122-50/+102
| | | | | | instead of source files. llvm-svn: 44962
* TargetInfo no longer includes a reference to SourceManager.Ted Kremenek2007-12-129-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
OpenPOWER on IntegriCloud