summaryrefslogtreecommitdiffstats
path: root/clang/Driver/clang.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make -o work with -E, patch contributed by Shantonu Sen!Chris Lattner2008-01-271-1/+1
| | | | llvm-svn: 46426
* add support for -Wundef.Chris Lattner2008-01-231-1/+7
| | | | llvm-svn: 46274
* Add Ubuntu 7.10 include path.Lauro Ramos Venancio2008-01-211-0/+4
| | | | llvm-svn: 46233
* Insert #pragma once when rewriting a header file.Fariborz Jahanian2008-01-181-1/+1
| | | | llvm-svn: 46155
* Shortened driver option for running the GR-constants analysis to --grconstants.Ted Kremenek2008-01-161-1/+1
| | | | llvm-svn: 46076
* Hooked up the GRConstants analysis to the driver.Ted Kremenek2008-01-161-4/+4
| | | | | | | Fixed some compilation errors with GREngine that showed up during template instantiation. llvm-svn: 46074
* add support for the GCC -include option.Chris Lattner2008-01-101-2/+21
| | | | llvm-svn: 45810
* Ted apparently likes crazy whitespace at the end of line. Crush his spirit byChris Lattner2008-01-101-1/+1
| | | | | | removing them, fitting the file into 80 columns. :) llvm-svn: 45807
* Added most of the boilerplate to the driver needed to run the graph-reachabilityTed Kremenek2008-01-081-0/+6
| | | | | | constant propagation analysis. llvm-svn: 45747
* Fix PR1897, patch by Wilhansen LiChris Lattner2008-01-041-0/+1
| | | | llvm-svn: 45593
* Rename stats to print-stats to avoid conflicting with llvm'sNate Begeman2007-12-301-1/+2
| | | | | | stats statistic when clang is built as a dylib. llvm-svn: 45441
* Don't attribute in file headers anymore. See llvmdev for theChris Lattner2007-12-291-2/+2
| | | | | | discussion of this change. llvm-svn: 45410
* Implement -emit-llvm-bc optionSeo Sanghyeon2007-12-241-1/+7
| | | | llvm-svn: 45339
* Converted uses of scoped_ptr to OwningPtr.Ted Kremenek2007-12-201-3/+3
| | | | llvm-svn: 45265
* 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-191-12/+10
| | | | | | | | | 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-191-8/+9
| | | | | | | 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-191-12/+14
| | | | | | | | | | 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
* Moved generation of the name of the serialized AST file intoTed Kremenek2007-12-191-14/+2
| | | | | | CreateASTSerializer. llvm-svn: 45201
* Moved ReadBitcodeFile and EmitBitcodeFile out of TranslationUnit and made themTed Kremenek2007-12-181-1/+1
| | | | | | | the standalone functions ReadASTBitcodeFile and EmitASTBitcodeFile respectively. llvm-svn: 45180
* Moved TranslationUnit from Driver to AST library.Ted Kremenek2007-12-181-1/+1
| | | | llvm-svn: 45175
* Start reading the headermap header, drop the 'errorstr' argument toChris Lattner2007-12-171-10/+2
| | | | | | the create method. llvm-svn: 45109
* Sink getName into DirectoryLookup to simplify the client in clang.Chris Lattner2007-12-171-5/+6
| | | | llvm-svn: 45106
* 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-151-20/+11
| | | | llvm-svn: 45060
* 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 -serialize-ast to not create a temporary directory, but insteadTed Kremenek2007-12-131-7/+8
| | | | | | | | 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
* Implemented -serialize-ast option for the driver. This is not really testedTed Kremenek2007-12-131-3/+24
| | | | | | and is a work in progress. llvm-svn: 44967
* Implemented prototype mode where the driver can operate on serialized ASTsTed Kremenek2007-12-121-50/+100
| | | | | | instead of source files. llvm-svn: 44962
* TargetInfo no longer includes a reference to SourceManager.Ted Kremenek2007-12-121-2/+1
| | | | | | | | | | | | | | | 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
* Moved construction of TargetInfo objects out of the DriverTed Kremenek2007-12-121-1/+4
| | | | | | | | and into the "Basic" library. TargetInfo objects are now constructed from triples by calling the static method TargetInfo::CreateTargetInfo. llvm-svn: 44940
* Simplify some code, don't force the triple to a darwin triple if non-darwin.Chris Lattner2007-12-121-21/+10
| | | | llvm-svn: 44911
* Moved creation of SourceManager, HeaderSearch, TargetInfo, and LangOptionsTed Kremenek2007-12-111-42/+45
| | | | | | | into the loop that processes input files. These will soon become translation unit specific (with the exception of LangOptions). llvm-svn: 44893
* Modified the internals of Diagnostic and DiagnosticClient to useTed Kremenek2007-12-111-3/+1
| | | | | | | | | | | | | | | | SourceManager*'s instead of SourceManager&'s. This allows the client specify a NULL SourceManager when using a default constructed SourceLocation. Thus the SourceManager can be NULL when the SourceLocation's isValid() == false. The interface to most clients of Diagnostic remains the same. Diagnostic::Report() is overload to either accept a SourceLocation and a SourceManager&, or neither. Thus clients that do not have a SourceManager cannot specify a SourceLocation. Modified TextDiagnostics* to use this new interface. Modified the driver to not passed in SourceManager when warning about "-I-". llvm-svn: 44887
* Mega-patch: ripped SourceManager out of Diagnostic/DiagnosticClient. NowTed Kremenek2007-12-111-4/+6
| | | | | | | | | | | | | | | | | | SourceManager is passed by reference, allowing the SourceManager to be associated with a specific translation unit, and not the entire execution of the driver. Modified all users of Diagnostics to comply with this new interface. Integrated SourceManager as a member variable of TargetInfo. TargetInfo will eventually be associated with a single translation unit (just like SourceManager). Made the SourceManager reference in ASTContext private. Provided accessor getSourceManager() for clients to use instead. Modified clients to comply with new interface. llvm-svn: 44878
* avoid ///usr/include/foo.h, patch by Sean MiddleditchChris Lattner2007-12-091-3/+10
| | | | llvm-svn: 44731
* Subdivided the function InitializeBaseLanguage into InitializeBaseLanguage,Ted Kremenek2007-12-051-43/+51
| | | | | | | | | GetLanguage, and InitializeLangOptions. The goal is to break up this logic into atomic units of functionality that can later be refactored into better driver logic that is capable of handling a mixture of source files of different languages. llvm-svn: 44642
OpenPOWER on IntegriCloud