summaryrefslogtreecommitdiffstats
path: root/clang/tools/driver
Commit message (Collapse)AuthorAgeFilesLines
* Chris Lattner has strong opinions about directoryTed Kremenek2010-12-232-3/+3
| | | | | | | | | | | | layout. :) Rename the 'EntoSA' directories to 'StaticAnalyzer'. Internally we will still use the 'ento' namespace for the analyzer engine (unless there are further sabre rattlings...). llvm-svn: 122514
* Rename headers: 'clang/GR' 'clang/EntoSA' andTed Kremenek2010-12-232-3/+3
| | | | | | update Makefile. llvm-svn: 122493
* [analyzer] Refactoring: Move checkers into lib/GR/Checkers and their own ↵Argyrios Kyrtzidis2010-12-222-1/+2
| | | | | | library, libclangGRCheckers llvm-svn: 122422
* [analyzer] Refactoring: lib/Checker -> lib/GR and libclangChecker -> ↵Argyrios Kyrtzidis2010-12-222-2/+2
| | | | | | libclangGRCore llvm-svn: 122421
* Replace all uses of PathV1::makeAbsolute with PathV2::fs::make_absolute.Michael J. Spencer2010-12-211-12/+16
| | | | llvm-svn: 122340
* Replace all uses of PathV1::get{Basename,Dirname,Suffix} with their PathV2 ↵Michael J. Spencer2010-12-181-2/+2
| | | | | | equivalents. llvm-svn: 122140
* Replace all uses of PathV1::getLast with PathV2::filename.Michael J. Spencer2010-12-181-3/+3
| | | | llvm-svn: 122117
* MemoryBuffer API update.Michael J. Spencer2010-12-162-7/+5
| | | | llvm-svn: 121956
* Update for LLVM API change.Daniel Dunbar2010-12-161-2/+5
| | | | llvm-svn: 121950
* Fixed version of 121435.Rafael Espindola2010-12-101-3/+14
| | | | llvm-svn: 121472
* Revert my previous patch to make the valgrind bots happy.Rafael Espindola2010-12-101-14/+3
| | | | llvm-svn: 121460
* Update clang for the API changes in the cfi patch.Rafael Espindola2010-12-091-3/+14
| | | | llvm-svn: 121435
* Use error_code instead of std::string* for MemoryBuffer.Michael J. Spencer2010-12-092-2/+7
| | | | llvm-svn: 121378
* Merge System into Support.Michael J. Spencer2010-11-292-7/+7
| | | | llvm-svn: 120297
* getNumErrors() -> hasErrorOccurred()Argyrios Kyrtzidis2010-11-191-1/+1
| | | | llvm-svn: 119765
* Refactoring of Diagnostic class.Argyrios Kyrtzidis2010-11-183-5/+8
| | | | | | | | | | | -Move the stuff of Diagnostic related to creating/querying diagnostic IDs into a new DiagnosticIDs class. -DiagnosticIDs can be shared among multiple Diagnostics for multiple translation units. -The rest of the state in Diagnostic object is considered related and tied to one translation unit. -Have Diagnostic point to the SourceManager that is related with. Diagnostic can now accept just a SourceLocation instead of a FullSourceLoc. -Reflect the changes to various interfaces. llvm-svn: 119730
* Turns out that we may end up calling dladdr on GetExecutablePath, give it ↵Benjamin Kramer2010-10-301-2/+1
| | | | | | external linkage to make sure the lookup works on all platforms. llvm-svn: 117813
* This function doesn't need external linkage either.Benjamin Kramer2010-10-301-1/+2
| | | | llvm-svn: 117786
* Do not use absolute path on the clang++ symlink.Oscar Fuentes2010-10-181-3/+5
| | | | | | Based on a patch by Ryuta Suzuki! llvm-svn: 116695
* Use a script for creating the clang++ executable.Oscar Fuentes2010-10-172-2/+19
| | | | | | | The previous method used the DESTDIR environment variable at configure time, but sometimes it is only available at install time. See PR8397. llvm-svn: 116689
* Call InitSections when assembling. This makes clang's output match that ofRafael Espindola2010-10-131-0/+1
| | | | | | llvm-mc. llvm-svn: 116405
* build: Add support for a CLANG_ORDER_FILE build variable to specify the path toDaniel Dunbar2010-09-161-0/+4
| | | | | | the order file to use for the clang executable. llvm-svn: 114052
* Revert "CMake: Update to use standard CMake dependency tracking facilities ↵Michael J. Spencer2010-09-131-15/+17
| | | | | | | | | | | | | instead" This reverts commit r113631 Conflicts: CMakeLists.txt lib/CodeGen/CMakeLists.txt llvm-svn: 113817
* Driver: Set TOOL_NO_EXPORTS when building a "production" compiler, we don'tDaniel Dunbar2010-09-101-0/+6
| | | | | | | | | | | | | | | | | | | | currently expect that to be useful for plugins, and this is important for startup performance: -- ddunbar@lordcrumb:tmp$ touch empty.c ddunbar@lordcrumb:tmp$ runN 100 ~/llvm.obj.64/Release/bin/clang -c empty.c name avg min med max SD total user 0.0054 0.0052 0.0054 0.0055 0.0000 0.5350 sys 0.0084 0.0090 0.0078 0.0087 0.0008 0.8390 wall 0.0149 0.0149 0.0149 0.0149 0.0003 1.4943 ddunbar@lordcrumb:tmp$ runN 100 ~/llvm.obj.64/Release/bin/clang -c empty.c name avg min med max SD total user 0.0036 0.0036 0.0036 0.0038 0.0000 0.3646 sys 0.0072 0.0071 0.0068 0.0070 0.0006 0.7158 wall 0.0123 0.0123 0.0122 0.0136 0.0003 1.2262 -- llvm-svn: 113638
* CMake: Update to use standard CMake dependency tracking facilities insteadMichael J. Spencer2010-09-101-17/+15
| | | | | | of whatever we were using before... llvm-svn: 113631
* Make "-ccc-cxx" option work on Linux.Rafael Espindola2010-09-061-1/+0
| | | | | | | | | Patch by nobled. I also took the opportunity to make the field private since now it is only ready from the outside. llvm-svn: 113138
* Straighten out target triples provided on the command lineDuncan Sands2010-08-301-1/+2
| | | | | | before using them. llvm-svn: 112468
* Move ExecuteCompilerInvocation to a new library FrontendToolPeter Collingbourne2010-08-243-4/+6
| | | | | | | | | | r110903 introduced a dependency from Frontend to every library that declared an Action by introducing Action references that previously resided in the driver in the file ExecuteCompilerInvocation.cpp. This patch moves ExecuteCompilerInvocation to a new library named FrontendTool which is intended to bear these dependencies. llvm-svn: 111873
* Another step in the process of making the parser depend on Sema:John McCall2010-08-202-3/+3
| | | | | | | | | - move DeclSpec &c into the Sema library - move ParseAST into the Parse library Reflect this change in a thousand different includes. Reflect this change in the link orders. llvm-svn: 111667
* Simplify the ownership model for DiagnosticClients, which was reallyDouglas Gregor2010-08-183-12/+13
| | | | | | | convoluted and a bit leaky. Now, the Diagnostic object owns its DiagnosticClient. llvm-svn: 111437
* Call llvm::remove_fatal_error_handler before deallocating objectsDan Gohman2010-08-182-2/+7
| | | | | | which are used by the error handling functions. llvm-svn: 111427
* Reintroduce the serialization library, with fixed dependencies.Sebastian Redl2010-08-172-3/+4
| | | | llvm-svn: 111279
* Revert Sebastian's build-breaking patch.Douglas Gregor2010-08-172-4/+3
| | | | llvm-svn: 111265
* Create a new Serialization module that contains all the PCH code, and will ↵Sebastian Redl2010-08-172-3/+4
| | | | | | contain all the module code in the future. Update the Makefiles, CMake projects and the Xcode project. I hope I did everything right for Xcode. No functionality change. llvm-svn: 111258
* Frontend: Move the bulk of the cc1_main() processing intoDaniel Dunbar2010-08-121-129/+3
| | | | | | ExecuteCompilerInvocation in libFrontend. llvm-svn: 110903
* clang -cc1: Move real diagnostics client initialization to earlier.Daniel Dunbar2010-08-121-13/+14
| | | | llvm-svn: 110902
* Frontend: Change PluginASTAction::ParseArgs to take a CompilerInstance objectDaniel Dunbar2010-08-021-5/+5
| | | | | | | | | | | | for use in reporting diagnostics. - We don't want to use the Action's own CompilerInstance, because that is only initialized during file processing and I like that invariant. Also, if ParseArgs returns false then abandon execution. Also, remove unused PluginASTAction::PrintHelp virtual method. llvm-svn: 110039
* Driver: Keep track of a separate "install dir", which is the path where clangDaniel Dunbar2010-08-011-0/+18
| | | | | | | | | was invoked from (which may not be where the executable itself is). - This allows having e.g., /Developer/usr/bin/clang be a symlink to some other location, while still making sure the Driver finds 'as', 'ld', etc. relative to itself. llvm-svn: 109989
* Simplify.Daniel Dunbar2010-08-011-4/+2
| | | | llvm-svn: 109988
* Prepare for upcoming ownership change.Benjamin Kramer2010-07-291-8/+7
| | | | llvm-svn: 109766
* Eliminate the "minimal" and printing parser actions, which only everDouglas Gregor2010-07-261-2/+0
| | | | | | | worked for C anyway. Also kills the -cc1 options -parse-noop and -parse-print-callbacks. llvm-svn: 109392
* Introduce a new lexer function to compute the "preamble" of a file,Douglas Gregor2010-07-201-0/+1
| | | | | | | | | which is the part of the file that contains all of the initial comments, includes, and preprocessor directives that occur before any of the actual code. Added a new -print-preamble cc1 action that is only used for testing. llvm-svn: 108913
* Driver: Switch to using a SmallVector instead of std::vector, and stopDaniel Dunbar2010-07-201-8/+8
| | | | | | accessing outside the range of the vector (which always asserts on Win32). llvm-svn: 108802
* Implement support for reading arguments specified in a file with @file. IfRafael Espindola2010-07-191-18/+96
| | | | | | there is no file named "file", keep the @file option unchanged. llvm-svn: 108697
* Revert r108672, "Implement support for reading arguments specified in a fileDaniel Dunbar2010-07-191-106/+18
| | | | | | | with @file.", it doesn't correctly handle cases where arguments starting with '@' are passed to other command line arguments. llvm-svn: 108686
* Implement support for reading arguments specified in a file with @file.Rafael Espindola2010-07-191-18/+106
| | | | llvm-svn: 108672
* Reapply r108617.Zhongxing Xu2010-07-191-2/+2
| | | | llvm-svn: 108668
* Driver: Change the driver to take the path to the main executable, instead ofDaniel Dunbar2010-07-191-2/+1
| | | | | | | | | taking it in pieces. - Fixes a problem where the Clang executable path was not initialized properly on Win32, because sys::Path::getBasename() doesn't do what I always think it does. Imagine that, a sys::Path interface that is confusing! llvm-svn: 108667
* Update for LLVM API change.Daniel Dunbar2010-07-191-1/+1
| | | | llvm-svn: 108665
* Refactor the code a bit so that there is only one call to BuildCompilation. TheRafael Espindola2010-07-181-12/+5
| | | | | | | StringPointers vector will also be used in the normal case to handle @file arguments. llvm-svn: 108660
OpenPOWER on IntegriCloud