Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | remove MAI::ZeroDirectiveSuffix, which is only used by MASM, | Chris Lattner | 2010-01-19 | 1 | -10/+6 | |
| | | | | | | which we don't support anymore. llvm-svn: 93886 | |||||
* | mcstreamer'ize the rest of EmitGlobalVariable that is used on | Chris Lattner | 2010-01-19 | 1 | -6/+8 | |
| | | | | | | | darwin. The next big piece to get global variables streamerized is EmitGlobalConstant. llvm-svn: 93870 | |||||
* | stop using the .lcomm pseudoop on darwin, instead, directly use the | Chris Lattner | 2010-01-19 | 1 | -9/+22 | |
| | | | | | | .zerofill directive. Streamerize its generation. llvm-svn: 93868 | |||||
* | Avoid including DebugInfo.h in AsmPrinter.h | Devang Patel | 2010-01-19 | 1 | -2/+2 | |
| | | | | llvm-svn: 93864 | |||||
* | mc'ize some stuff, don't comment out .lcomm directive in -fverbose-asm mode. | Chris Lattner | 2010-01-19 | 1 | -7/+4 | |
| | | | | llvm-svn: 93860 | |||||
* | factor this code better. | Chris Lattner | 2010-01-19 | 1 | -21/+13 | |
| | | | | llvm-svn: 93859 | |||||
* | Now that we have everything nicely factored (e.g. asmprinter is not | Chris Lattner | 2010-01-19 | 1 | -2/+122 | |
| | | | | | | | | | | | | | | | | | | | | | | | doing global variable classification anymore) and hookized, sink almost all target targets global variable emission code into AsmPrinter and out of each target. Some notes: 1. PIC16 does completely custom and crazy stuff, so it is not changed. 2. XCore has some custom handling for extra directives. I'll look at it next. 3. This switches linux/ppc to use .globl instead of .global. If .globl is actually wrong, let me know and I'll fix it. 4. This makes linux/ppc get a lot of random cases right which were obviously wrong before, it is probably now a bit healthier. 5. Blackfin will probably start getting .comm and other things that it didn't before. If this is undesirable, it should explicitly opt out of these things by clearing the relevant fields of MCAsmInfo. This leads to a nice diffstat: 14 files changed, 127 insertions(+), 830 deletions(-) llvm-svn: 93858 | |||||
* | hoist handling of external globals and special globals up to common code. | Chris Lattner | 2010-01-19 | 1 | -1/+15 | |
| | | | | | | | | | | This makes a similar code dead in all the other targets, I'll clean it up in a bit. This also moves handling of lcomm up before acquisition of a section, since lcomm never needs a section. llvm-svn: 93851 | |||||
* | move production of .reference directives for static ctor/dtor list on | Chris Lattner | 2010-01-19 | 1 | -0/+8 | |
| | | | | | | darwin into common code. llvm-svn: 93849 | |||||
* | now that MCSymbol::print doesn't use it's MAI argument, we can | Chris Lattner | 2010-01-17 | 1 | -50/+28 | |
| | | | | | | | remove it and change all the code that prints MCSymbols to use << instead, which is much simpler and cleaner. llvm-svn: 93695 | |||||
* | now that mangler is in libtarget, it can use MCAsmInfo instead of clients | Chris Lattner | 2010-01-17 | 1 | -2/+1 | |
| | | | | | | having to pass various fields from it in. Simplify. llvm-svn: 93686 | |||||
* | Switch some functions to take Twines, eliminate uses of StringExtras.h. | Benjamin Kramer | 2010-01-17 | 1 | -23/+10 | |
| | | | | llvm-svn: 93680 | |||||
* | move the mangler into libtarget from vmcore. | Chris Lattner | 2010-01-16 | 1 | -2/+2 | |
| | | | | llvm-svn: 93664 | |||||
* | unbreak the build. | Chris Lattner | 2010-01-16 | 1 | -6/+0 | |
| | | | | llvm-svn: 93654 | |||||
* | rename GetPrivateGlobalValueSymbolStub -> GetSymbolWithGlobalValueBase, | Chris Lattner | 2010-01-16 | 1 | -5/+6 | |
| | | | | | | | | and add an explicit ForcePrivate argument. Switch FunctionEHFrameInfo to be MCSymbol based instead of string based. llvm-svn: 93646 | |||||
* | eliminate uses of getMangledName from AsmPrinter.cpp, last up is | Chris Lattner | 2010-01-16 | 1 | -5/+9 | |
| | | | | | | dwarf emission which is going to be more invasive. llvm-svn: 93645 | |||||
* | Replace DebugLocTuple with DILocation. | Devang Patel | 2010-01-16 | 1 | -12/+12 | |
| | | | | llvm-svn: 93630 | |||||
* | fix inverted conditional | Chris Lattner | 2010-01-16 | 1 | -1/+1 | |
| | | | | llvm-svn: 93614 | |||||
* | CurrentFnName is now dead, remove it. | Chris Lattner | 2010-01-16 | 1 | -2/+1 | |
| | | | | llvm-svn: 93612 | |||||
* | remove the string form of printVisibility. | Chris Lattner | 2010-01-16 | 1 | -20/+18 | |
| | | | | llvm-svn: 93609 | |||||
* | supplement CurrentFnName with CurrentFnSym, which will eventually | Chris Lattner | 2010-01-15 | 1 | -0/+1 | |
| | | | | | | | replace it. Upgrade Alpha, Blackfin, and part of CellSPU to not use mangler anymore. CellSPU needs more invasive surgery. llvm-svn: 93589 | |||||
* | add a version of AsmPrinter::printVisibility that takes an MCSymbol. | Chris Lattner | 2010-01-15 | 1 | -0/+17 | |
| | | | | llvm-svn: 93587 | |||||
* | add another helper | Chris Lattner | 2010-01-15 | 1 | -0/+11 | |
| | | | | llvm-svn: 93577 | |||||
* | add a AsmPrinter::GetGlobalValueSymbol and GetExternalSymbolSymbol | Chris Lattner | 2010-01-15 | 1 | -0/+16 | |
| | | | | | | helper method, use it to simplify some code. llvm-svn: 93575 | |||||
* | Fix a comment. | Dale Johannesen | 2010-01-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 93463 | |||||
* | remove uses of deprecated functions, this generates slightly | Chris Lattner | 2010-01-13 | 1 | -6/+7 | |
| | | | | | | | | | different BlockAddress labels, but nothing semantically important. Add a FIXME that BlockAddress codegen is broken if the LLVM BB has an empty name (e.g. strip was run). llvm-svn: 93303 | |||||
* | use the new form of getNameWithPrefix, not makeNameProper. | Chris Lattner | 2010-01-13 | 1 | -1/+1 | |
| | | | | | | | | | Among other things, this would do very weird things if the basic block name had (e.g.) a space in it on darwin: makeNameProper would add quotes, then the mcsymbol would escape the quotes. llvm-svn: 93302 | |||||
* | change Mangler::makeNameProper to return its result in a SmallVector | Chris Lattner | 2010-01-13 | 1 | -7/+8 | |
| | | | | | | | | | | | | instead of returning it in an std::string. Based on this change: 1. Change TargetLoweringObjectFileCOFF::getCOFFSection to take a StringRef 2. Change a bunch of targets to call makeNameProper with a smallstring, making several of them *much* more efficient. 3. Rewrite Mangler::makeNameProper to not build names and then prepend prefixes, not use temporary std::strings, and to avoid other crimes. llvm-svn: 93298 | |||||
* | fix assert in AsmPrinter::EmitGlobalConstantLargeInt to match reality. | Chris Lattner | 2010-01-13 | 1 | -2/+1 | |
| | | | | llvm-svn: 93293 | |||||
* | reduce nesting and code duplication in AsmPrinter::EmitGlobalConstantLargeInt. | Chris Lattner | 2010-01-13 | 1 | -31/+26 | |
| | | | | llvm-svn: 93292 | |||||
* | reduce indentation and add a fast-path to EmitGlobalConstant for 8-byte | Chris Lattner | 2010-01-13 | 1 | -5/+22 | |
| | | | | | | integers on 64-bit systems. llvm-svn: 93291 | |||||
* | reduce indentation and use early exits in AsmPrinter::EmitConstantValueOnly | Chris Lattner | 2010-01-13 | 1 | -107/+122 | |
| | | | | llvm-svn: 93290 | |||||
* | fix PR5930, allowing the asmprinter to emit difference between | Chris Lattner | 2010-01-03 | 1 | -2/+8 | |
| | | | | | | two labels as a truncate. llvm-svn: 92455 | |||||
* | Remove dead store. | Bill Wendling | 2009-12-25 | 1 | -1/+0 | |
| | | | | llvm-svn: 92156 | |||||
* | Fix a bunch of little errors that Clang complains about when its being pedantic | Douglas Gregor | 2009-12-19 | 1 | -1/+1 | |
| | | | | llvm-svn: 91764 | |||||
* | Print newlines after printing labels for debug info, so that the output | Dan Gohman | 2009-12-05 | 1 | -0/+1 | |
| | | | | | | isn't cluttered with things like "Llabel47:Llabel48: movq (%rsi), %xmm3" llvm-svn: 90638 | |||||
* | Fix this code to use DIScope instead of DICompileUnit, as in r90181. | Dan Gohman | 2009-12-05 | 1 | -8/+9 | |
| | | | | | | | Don't print "SrcLine"; just print the filename and line number, which is obvious enough and more informative. llvm-svn: 90631 | |||||
* | Print a space between the comment character and the text. | Dan Gohman | 2009-12-04 | 1 | -4/+6 | |
| | | | | llvm-svn: 90621 | |||||
* | Use new interfaces to print spill size. | David Greene | 2009-12-04 | 1 | -6/+9 | |
| | | | | llvm-svn: 90611 | |||||
* | Use StringRef instead of std::string in DIEString. | Devang Patel | 2009-11-24 | 1 | -1/+1 | |
| | | | | llvm-svn: 89793 | |||||
* | Target-independent support for TargetFlags on BlockAddress operands, | Dan Gohman | 2009-11-20 | 1 | -4/+7 | |
| | | | | | | and support for blockaddresses in x86-32 PIC mode. llvm-svn: 89506 | |||||
* | Support spill comments. | David Greene | 2009-11-16 | 1 | -0/+52 | |
| | | | | | | | | Have the asm printer emit a comment if an instruction is a spill or reload and have the spiller mark copies it introdues so the asm printer can also annotate those. llvm-svn: 88911 | |||||
* | revert 88761 as it fails builds. | Sanjiv Gupta | 2009-11-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 88762 | |||||
* | Fix debug info crashes for PIC16. | Sanjiv Gupta | 2009-11-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 88761 | |||||
* | Use .data() instead of .c_str() when nul-termination is not needed. | Dan Gohman | 2009-11-13 | 1 | -1/+1 | |
| | | | | llvm-svn: 88703 | |||||
* | Move DebugInfo checks into EmitComments and remove them from | David Greene | 2009-11-13 | 1 | -15/+23 | |
| | | | | | | | | target-specific AsmPrinters. Not all comments need DebugInfo. Re-enable the line numbers comment test. llvm-svn: 88697 | |||||
* | Implement support to debug inlined functions. | Devang Patel | 2009-11-10 | 1 | -19/+18 | |
| | | | | llvm-svn: 86748 | |||||
* | Fix comment typos. | Bob Wilson | 2009-11-06 | 1 | -3/+3 | |
| | | | | llvm-svn: 86295 | |||||
* | Factor out the printing of the leading tab into printInlineAsm. | Dan Gohman | 2009-11-06 | 1 | -0/+2 | |
| | | | | llvm-svn: 86199 | |||||
* | Fix the label name generation for address-taken labels to avoid potential | Dan Gohman | 2009-11-05 | 1 | -6/+10 | |
| | | | | | | problems with name collisions. llvm-svn: 86189 |