summaryrefslogtreecommitdiffstats
path: root/clang/tools/driver/cc1as_main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update for llvm api change.Rafael Espindola2014-10-151-3/+2
| | | | llvm-svn: 219800
* Convert MC command line flag for fatal assembler warnings into a properJoerg Sonnenberger2014-08-261-1/+4
| | | | | | flag. llvm-svn: 216472
* Update for llvm api change.Rafael Espindola2014-08-251-7/+6
| | | | llvm-svn: 216397
* Update Clang for LLVM API change to use unique_ptr in ↵David Blaikie2014-08-211-1/+1
| | | | | | SourceManager::AddNewSourceBuffer llvm-svn: 216226
* ArrayRef'izeSean Silva2014-08-151-9/+8
| | | | | | | I've shied away from ArrayRef'izing CompilerInvocation::CreateFromArgs in this commit because that is a less localized change. llvm-svn: 215773
* Remove dead code from r212620Alp Toker2014-07-091-35/+3
| | | | llvm-svn: 212622
* cc1as: consolidate option flags with cc1 and eliminate duplicationAlp Toker2014-07-091-12/+48
| | | | | | | | | | The clang -cc1as options are nearly a strict subset of -cc1. Instead of duplicating the definitions and documentation, let's go ahead and share the definitions in a similar way the current handling of combined driver and frontend flags, eliminating some of the vestigial legacy surrounding the assembler subcommand. llvm-svn: 212620
* Update for llvm api change.Rafael Espindola2014-07-061-5/+6
| | | | llvm-svn: 212408
* Refer to error_code with the std prefix.Rafael Espindola2014-06-121-1/+2
| | | | llvm-svn: 210817
* Include system_error directly.Rafael Espindola2014-06-121-1/+1
| | | | llvm-svn: 210802
* [C++11] Use 'nullptr'. Tools edition.Craig Topper2014-06-081-4/+4
| | | | llvm-svn: 210422
* cc1as: invert return bool to indicate failureAlp Toker2014-05-311-20/+13
| | | | | | | | This simplifies code flow and matches the convention used in surrounding code. No functional change. llvm-svn: 209936
* cc1as: fix a potential leak and unremoved output file in error conditionsAlp Toker2014-05-311-13/+17
| | | | llvm-svn: 209935
* Pass -gdwarf-N options to integrated assemblerOliver Stannard2014-05-191-0/+9
| | | | llvm-svn: 209124
* Update for llvm api change.Rafael Espindola2014-05-071-1/+0
| | | | llvm-svn: 208206
* Update Target::createMCAsmParser calls for the LLVM interface change.Evgeniy Stepanov2014-04-231-1/+5
| | | | | | Patch by Yuri Gorshenin. llvm-svn: 206970
* Comment necessity of early initializationDavid Blaikie2014-03-311-3/+5
| | | | | | | | | | | | Code review feedback from Eric Christopher on r204261. I didn't want to go into too much detail (the revision history should provide the full stuff) - but I can add more if that's preferred. Also moved this up to right by the construction of the MCAsmInfo so there's less chance that other things might sneak in in between. llvm-svn: 205267
* DebugInfo compression: Enable compression before any sections are created.David Blaikie2014-03-311-2/+4
| | | | | | | | | | | | | | | | | | | | For those playing at home this produced some fairly subtle behavior. The sections created in InitMCObjectFileInfo were created without compressed debug info (a mistake, but not necessarily /broken). Since these sections were almost always referenced by the existing MCSection object, this almost worked. This got weird when we got to handling the relocations for a section. See ELFObjectWriter::WriteSection where we compute the true section for a relocation section by simply stripping the ".rela" prefix and then looking up that section - doing so hit the compression codepath, looked up .zdebug_blah and found a newly constructed empty section... thus, things got weird. This is untestable without a cross-project test (let me know if people would prefer that to no testing). llvm-svn: 205261
* Support for -Wa,-compress-debug-sections.David Blaikie2014-03-271-0/+4
| | | | | | Also, while I'm here, support -nocompress-debug-sections too. llvm-svn: 204959
* [C++11] Replace OwningPtr include with <memory>.Ahmed Charles2014-03-091-1/+1
| | | | llvm-svn: 203389
* Replace OwningPtr with std::unique_ptr.Ahmed Charles2014-03-071-15/+16
| | | | | | This compiles cleanly with lldb/lld/clang-tools-extra/llvm. llvm-svn: 203279
* Change OwningPtr::take() to OwningPtr::release().Ahmed Charles2014-03-071-1/+1
| | | | | | This is a precursor to moving to std::unique_ptr. llvm-svn: 203275
* Update for llvm api change.Rafael Espindola2014-02-241-1/+1
| | | | llvm-svn: 202053
* Update for llvm api change.Rafael Espindola2014-02-051-1/+0
| | | | llvm-svn: 200863
* Update for llvm api change.Rafael Espindola2014-01-261-1/+1
| | | | llvm-svn: 200136
* Fix up fallout from r187156.Bob Wilson2013-09-261-1/+1
| | | | | | | | | The previous change caused the driver to translate -Wa,-L to the -msave-temp-labels option for cc1as, but cc1as did not accept that option. This patch follows the same approach used for similar options (-relax-all, -noexecstack) in the previous patch. llvm-svn: 191458
* Fix the MCTargetAsmParser API change.Joey Gouly2013-09-121-1/+1
| | | | llvm-svn: 190601
* Update to the new API interface which requires the MCRegisterInfo object. ↵Bill Wendling2013-09-091-2/+3
| | | | | | <rdar://problem/13623355> llvm-svn: 190291
* Don't forward all assembler arguments untouched to -cc1asDavid Blaikie2013-07-251-4/+2
| | | | | | | | | | | | | | Use the same filtering for assembly arguments to -cc1as as we do for -cc1, this allows a consistent (& more useful) diagnostic experience for users (rather than getting an error from -cc1as (which a user shouldn't really be thinking about) about --foo, they get an error from clang about --foo in -Wa,) I'm sort of surprised by the separation of -cc1as & the separate argument handling, etc, but at least this removes a little bit of the duplication. llvm-svn: 187156
* Update for llvm API change.Rafael Espindola2013-07-161-2/+2
| | | | llvm-svn: 186448
* Don't use PathV1.h in cc1as_main.cpp.Rafael Espindola2013-06-261-2/+2
| | | | llvm-svn: 184938
* Update to pass in pointers intead of references.Bill Wendling2013-06-181-1/+1
| | | | llvm-svn: 184176
* [Driver] Refactor clang driver to use LLVM's Option libraryReid Kleckner2013-06-141-6/+8
| | | | | | | | | | | | | | | | | | The big changes are: - Deleting Driver/(Arg|Opt)* - Rewriting includes to llvm/Option/ and re-sorting - 'using namespace llvm::opt' in clang::driver - Fixing the autoconf build by adding option everywhere As discussed in the review, this change includes using directives in header files. I'll make follow up changes to remove those in favor of name specifiers. Reviewers: espindola Differential Revision: http://llvm-reviews.chandlerc.com/D975 llvm-svn: 183989
* Don't depend on the transitive inclusion of PathV1.h.Rafael Espindola2013-06-131-0/+1
| | | | llvm-svn: 183945
* Use the sys::RemoveFileOnSignal that takes a StringRef.Rafael Espindola2013-06-131-1/+1
| | | | llvm-svn: 183944
* Update for LLVM interface change in r181680.Rafael Espindola2013-05-131-3/+3
| | | | llvm-svn: 181681
* Update the error handing static functions for r178161.Chad Rosier2013-03-271-1/+2
| | | | | | Part of rdar://13296693 llvm-svn: 178162
* We want the dwarf AT_producer for assembly source files to match clang'sKevin Enderby2013-01-171-0/+4
| | | | | | | | | | | | | | | | AT_producer. Which includes clang's version information so we can tell which version of the compiler was used. This is second of the two steps to allow us to do this. The first was a change to llvm-mc with revision 172630 to provide a method to set the AT_producer string. This second step has the clang driver passing the value of getClangFullVersion() via the new flag -dwarf-debug-producer when invoking the integrated assembler on assembly source files. Then using the new setDwarfDebugProducer() method to set the AT_producer string. rdar://12888242 llvm-svn: 172758
* Rewrite #includes for llvm/Foo.h to llvm/IR/Foo.h as appropriate toChandler Carruth2013-01-021-1/+1
| | | | | | | | reflect the migration in r171366. Re-sort the #include lines to reflect the new paths. llvm-svn: 171369
* Add support for passing the main file name down to the assemblerEric Christopher2012-12-181-0/+4
| | | | | | | | for location information. Part of PR14624 llvm-svn: 170391
* Fix PR14625 by teaching the driver to detect PWD for assembly files.Chandler Carruth2012-12-171-0/+4
| | | | | | | | | | | | | | This also requires adding support to -cc1as for passing the detecting PWD down through LLVM's debug info (which in turn required the LLVM change in r170371). The test case is weak (we only test the driver behavior) because there is currently to infrastructure for running cc1as in the test suite. So those four lines are untested (much like all other lines in that file), but we have a test for the same pattern using llvm-mc in the LLVM repository. llvm-svn: 170373
* Sort #include lines for tools/...Chandler Carruth2012-12-041-9/+9
| | | | | | Completely automated with sort_includes.py llvm-svn: 169240
* Remove first argument from Arg::getValue; it's been unused since r105760.Richard Smith2012-11-011-2/+2
| | | | llvm-svn: 167211
* Make DiagnosticOptions intrusively reference-counted, and make sureDouglas Gregor2012-10-231-3/+4
| | | | | | | the various stakeholders bump up the reference count. In particular, the diagnostics engine now keeps the DiagnosticOptions object alive. llvm-svn: 166508
* Move TargetData to DataLayout.Micah Villmow2012-10-081-1/+1
| | | | llvm-svn: 165395
* Follow up on llvm r164132.Roman Divacky2012-09-181-2/+2
| | | | llvm-svn: 164133
* Allow MCCodeEmitter access to the target MCRegisterInfo.Jim Grosbach2012-05-151-2/+2
| | | | | | Add MRI to the createMCCodeEmitter() call. llvm-svn: 156830
* Fix build by passing in the needed variable after r153860.Bill Wendling2012-04-021-1/+2
| | | | llvm-svn: 153861
* Add MCRegisterInfo to the MCInstPrinter factory function interface.Jim Grosbach2012-03-051-1/+1
| | | | llvm-svn: 152046
* Basic: import IntrusiveRefCntPtr<> into clang namespaceDylan Noblesmith2012-02-201-1/+1
| | | | | | | The class name is long enough without the llvm:: added. Also bring in RefCountedBase and RefCountedBaseVPTR. llvm-svn: 150958
OpenPOWER on IntegriCloud