Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | This function doesn't need external linkage either. | Benjamin Kramer | 2010-10-30 | 1 | -1/+2 | |
| | | | | llvm-svn: 117786 | |||||
* | Make "-ccc-cxx" option work on Linux. | Rafael Espindola | 2010-09-06 | 1 | -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 | |||||
* | Simplify the ownership model for DiagnosticClients, which was really | Douglas Gregor | 2010-08-18 | 1 | -4/+4 | |
| | | | | | | | convoluted and a bit leaky. Now, the Diagnostic object owns its DiagnosticClient. llvm-svn: 111437 | |||||
* | Driver: Keep track of a separate "install dir", which is the path where clang | Daniel Dunbar | 2010-08-01 | 1 | -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 Dunbar | 2010-08-01 | 1 | -4/+2 | |
| | | | | llvm-svn: 109988 | |||||
* | Driver: Switch to using a SmallVector instead of std::vector, and stop | Daniel Dunbar | 2010-07-20 | 1 | -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. If | Rafael Espindola | 2010-07-19 | 1 | -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 file | Daniel Dunbar | 2010-07-19 | 1 | -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 Espindola | 2010-07-19 | 1 | -18/+106 | |
| | | | | llvm-svn: 108672 | |||||
* | Driver: Change the driver to take the path to the main executable, instead of | Daniel Dunbar | 2010-07-19 | 1 | -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 | |||||
* | Refactor the code a bit so that there is only one call to BuildCompilation. The | Rafael Espindola | 2010-07-18 | 1 | -12/+5 | |
| | | | | | | | StringPointers vector will also be used in the normal case to handle @file arguments. llvm-svn: 108660 | |||||
* | Driver/MC: Add 'clang -cc1as' integrated assembler tool, currently accepts ↵ | Daniel Dunbar | 2010-05-20 | 1 | -4/+17 | |
| | | | | | | approximately the same interface as 'llvm-mc'. llvm-svn: 104239 | |||||
* | Driver: Add support for a CLANGXX_IS_PRODUCTION build variable, which enable | Daniel Dunbar | 2010-04-01 | 1 | -1/+8 | |
| | | | | | | Clang++ support, even in "Production" mode (for testing purposes). llvm-svn: 100119 | |||||
* | make -ftime-report work even in -disable-free mode. Woo, finally. | Chris Lattner | 2010-03-30 | 1 | -6/+13 | |
| | | | | | | rdar://7781603 llvm-svn: 99878 | |||||
* | Driver: Support CC_PRINT_OPTIONS, used for logging the compile commands (in ↵ | Daniel Dunbar | 2010-03-20 | 1 | -0/+5 | |
| | | | | | | -v style) to a file. llvm-svn: 99054 | |||||
* | Mark variable as const | Kovarththanan Rajaratnam | 2010-03-08 | 1 | -2/+2 | |
| | | | | llvm-svn: 97951 | |||||
* | Driver: Use TextDiagnosticPrinter instead of a custom one. | Daniel Dunbar | 2010-02-25 | 1 | -33/+4 | |
| | | | | llvm-svn: 97102 | |||||
* | clang: Add support for s// edit form of QA_OVERRIDE_GCC3_OPTIONS. | Daniel Dunbar | 2010-02-17 | 1 | -7/+22 | |
| | | | | | | - Used to do regex patsubst on arguments. llvm-svn: 96512 | |||||
* | Driver: Use "g++" as generic gcc name when running in C++ mode, for platforms | Daniel Dunbar | 2009-12-25 | 1 | -1/+3 | |
| | | | | | | that lack real tool definitions. llvm-svn: 92164 | |||||
* | Remove several .c_str() to be forward-compatible with StringRef. | Jeffrey Yasskin | 2009-12-08 | 1 | -2/+2 | |
| | | | | llvm-svn: 90822 | |||||
* | Add gcc's -no-canonical-prefixes option to clang. | Rafael Espindola | 2009-12-04 | 1 | -3/+14 | |
| | | | | llvm-svn: 90577 | |||||
* | Put CompilerInvocation testing code in clang-cc instead of clang for now, I ↵ | Daniel Dunbar | 2009-11-30 | 1 | -7/+6 | |
| | | | | | | | | can't bear to link all of clang into 'clang' yet. :) - Still triggered by a magic leading -cc1 argument, as before. llvm-svn: 90114 | |||||
* | Change CompilerInvocation::CreateFromArgs to take Argv0 and the address of ↵ | Daniel Dunbar | 2009-11-29 | 1 | -2/+4 | |
| | | | | | | main (or something in the main executable) so it can find the builtin compiler files. llvm-svn: 90090 | |||||
* | Add a workaround to silence a bogus g++-4.4 -pedantic warning. | Benjamin Kramer | 2009-11-20 | 1 | -1/+3 | |
| | | | | | | driver.cpp:211: warning: ISO C++ forbids zero-size array 'argv' llvm-svn: 89455 | |||||
* | Sketch some 'clang -cc1' support, for testing parts of CompilerInvocation. | Daniel Dunbar | 2009-11-19 | 1 | -0/+7 | |
| | | | | llvm-svn: 89333 | |||||
* | Driver: ArgList doesn't depend on Options.h anymore. | Daniel Dunbar | 2009-11-19 | 1 | -1/+0 | |
| | | | | llvm-svn: 89313 | |||||
* | Fix unsafe use of StringRef I introduced. | Daniel Dunbar | 2009-11-11 | 1 | -2/+3 | |
| | | | | llvm-svn: 86829 | |||||
* | Driver: Run 'clang' in C++ mode based on the name it was invoked by. We match | Daniel Dunbar | 2009-11-10 | 1 | -0/+9 | |
| | | | | | | | | | | | | anything that ends with ++ or ++-FOO (e.g., c++, clang++, clang++-1.1) as being a "C++ compiler". This allows easy testing of the C++ compiler by 'ln -s clang clang++', or by 'cp clang clang++'. Based on patch by Roman Divacky. llvm-svn: 86697 | |||||
* | Push "clang-is-production" logic up to tools/driver, and make it hittable by | Daniel Dunbar | 2009-09-22 | 1 | -1/+6 | |
| | | | | | | defining the CLANG_IS_PRODUCTION Makefile variable. llvm-svn: 82583 | |||||
* | Fix indentation / trailing white space. | Daniel Dunbar | 2009-07-17 | 1 | -51/+51 | |
| | | | | llvm-svn: 76200 | |||||
* | [llvm up] Add support for '#' component of QA_OVERRIDE_GCC3_OPTIONS. | Daniel Dunbar | 2009-07-16 | 1 | -11/+26 | |
| | | | | | | - This silences the output about how command line arguments are being changed. llvm-svn: 76107 | |||||
* | Driver: Move Compilation::Execute to Driver::ExecuteCompilation. | Daniel Dunbar | 2009-07-01 | 1 | -1/+1 | |
| | | | | | | | | | - The Compilation is just a helper class, it shouldn't have that amount of logic in it. - No functionality change. llvm-svn: 74634 | |||||
* | Revert to using &...[0] for std::vector, apparently .data isn't generally | Daniel Dunbar | 2009-05-26 | 1 | -2/+2 | |
| | | | | | | available (and it isn't necessary in this case). llvm-svn: 72425 | |||||
* | Use .data() vs &...[0] | Daniel Dunbar | 2009-05-26 | 1 | -2/+2 | |
| | | | | llvm-svn: 72420 | |||||
* | The driver/diagnostic client don't need to be on the heap. | Daniel Dunbar | 2009-05-26 | 1 | -12/+10 | |
| | | | | llvm-svn: 72418 | |||||
* | Support QA_OVERRIDE_GCC3_OPTIONS | Daniel Dunbar | 2009-04-17 | 1 | -10/+111 | |
| | | | | | | | | | | - Cover your eyes... - This is a simple but effective way to allow developers to build a project with clang while manipulating the command line, without having to edit the project itself. llvm-svn: 69342 | |||||
* | Driver: CCC_ADD_ARGS could end up using dangling pointers. | Daniel Dunbar | 2009-04-10 | 1 | -1/+1 | |
| | | | | llvm-svn: 68805 | |||||
* | Allow CCC_ADD_ARGS to add empty arguments | Daniel Dunbar | 2009-04-01 | 1 | -5/+3 | |
| | | | | llvm-svn: 68235 | |||||
* | Support CCC_ADD_ARGS in new driver. | Daniel Dunbar | 2009-04-01 | 1 | -2/+37 | |
| | | | | llvm-svn: 68231 | |||||
* | (LLVM up) Update to use llvm::sys::getHostTriple(). | Daniel Dunbar | 2009-03-31 | 1 | -7/+5 | |
| | | | | | | | | - Always pass -triple to clang-cc (-arch will be removed). - clang-cc doesn't play guess work with the target triple anymore. llvm-svn: 68119 | |||||
* | Rename clang-driver to clang. | Daniel Dunbar | 2009-03-24 | 1 | -0/+1 | |
| | | | | | | Again, I tried to update cmake but it is untested. llvm-svn: 67606 | |||||
* | Driver: Give Compilation::Execute total control over the Driver result | Daniel Dunbar | 2009-03-21 | 1 | -8/+4 | |
| | | | | | | | code; and don't return an error code when -### is present, even if errors occur. llvm-svn: 67425 | |||||
* | Driver: Get executable path using llvm::sys::Path::GetMainExecutable. | Daniel Dunbar | 2009-03-18 | 1 | -5/+8 | |
| | | | | llvm-svn: 67228 | |||||
* | Driver: Use custom diag printer to drop dependency on libFrontend and | Daniel Dunbar | 2009-03-18 | 1 | -7/+38 | |
| | | | | | | libLex. llvm-svn: 67155 | |||||
* | Driver: Use PrettyStackTrace. | Daniel Dunbar | 2009-03-18 | 1 | -1/+8 | |
| | | | | llvm-svn: 67149 | |||||
* | Driver: Implement majority tool binding logic. | Daniel Dunbar | 2009-03-16 | 1 | -0/+1 | |
| | | | | | | | | | | | | - Still need code for determining proper output location. - Doesn't work yet, of course, as the host isn't providing real tool chains. - Interface still has a few warts, but has gotten a nice bit of polish during the rewrite. llvm-svn: 67038 | |||||
* | Driver: Return 0 from BuildCompilation on -ccc-print-phases, | Daniel Dunbar | 2009-03-13 | 1 | -0/+2 | |
| | | | | | | -ccc-print-options. llvm-svn: 66907 | |||||
* | Driver: Use standard Diagnostic interface for diagnostics. | Daniel Dunbar | 2009-03-12 | 1 | -2/+16 | |
| | | | | llvm-svn: 66786 | |||||
* | Driver: Add host info. | Daniel Dunbar | 2009-03-10 | 1 | -1/+5 | |
| | | | | | | | - Replace assorted -ccc-host-* options by -ccc-host-triple which is more sane. llvm-svn: 66600 | |||||
* | Driver: Handle magic -ccc- options. | Daniel Dunbar | 2009-03-10 | 1 | -1/+8 | |
| | | | | | | | - Follows ccc currently, but this functionality should eventually be outside the Driver lib. llvm-svn: 66575 |