summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* remove MAI::ZeroDirectiveSuffix, which is only used by MASM,Chris Lattner2010-01-191-10/+6
| | | | | | which we don't support anymore. llvm-svn: 93886
* mcstreamer'ize the rest of EmitGlobalVariable that is used on Chris Lattner2010-01-191-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 theChris Lattner2010-01-191-9/+22
| | | | | | .zerofill directive. Streamerize its generation. llvm-svn: 93868
* Avoid including DebugInfo.h in AsmPrinter.hDevang Patel2010-01-191-2/+2
| | | | llvm-svn: 93864
* mc'ize some stuff, don't comment out .lcomm directive in -fverbose-asm mode.Chris Lattner2010-01-191-7/+4
| | | | llvm-svn: 93860
* factor this code better.Chris Lattner2010-01-191-21/+13
| | | | llvm-svn: 93859
* Now that we have everything nicely factored (e.g. asmprinter is notChris Lattner2010-01-191-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 Lattner2010-01-191-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 onChris Lattner2010-01-191-0/+8
| | | | | | darwin into common code. llvm-svn: 93849
* now that MCSymbol::print doesn't use it's MAI argument, we can Chris Lattner2010-01-171-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 clientsChris Lattner2010-01-171-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 Kramer2010-01-171-23/+10
| | | | llvm-svn: 93680
* move the mangler into libtarget from vmcore.Chris Lattner2010-01-161-2/+2
| | | | llvm-svn: 93664
* unbreak the build.Chris Lattner2010-01-161-6/+0
| | | | llvm-svn: 93654
* rename GetPrivateGlobalValueSymbolStub -> GetSymbolWithGlobalValueBase,Chris Lattner2010-01-161-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 Lattner2010-01-161-5/+9
| | | | | | dwarf emission which is going to be more invasive. llvm-svn: 93645
* Replace DebugLocTuple with DILocation.Devang Patel2010-01-161-12/+12
| | | | llvm-svn: 93630
* fix inverted conditionalChris Lattner2010-01-161-1/+1
| | | | llvm-svn: 93614
* CurrentFnName is now dead, remove it.Chris Lattner2010-01-161-2/+1
| | | | llvm-svn: 93612
* remove the string form of printVisibility.Chris Lattner2010-01-161-20/+18
| | | | llvm-svn: 93609
* supplement CurrentFnName with CurrentFnSym, which will eventuallyChris Lattner2010-01-151-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 Lattner2010-01-151-0/+17
| | | | llvm-svn: 93587
* add another helperChris Lattner2010-01-151-0/+11
| | | | llvm-svn: 93577
* add a AsmPrinter::GetGlobalValueSymbol and GetExternalSymbolSymbolChris Lattner2010-01-151-0/+16
| | | | | | helper method, use it to simplify some code. llvm-svn: 93575
* Fix a comment.Dale Johannesen2010-01-141-1/+1
| | | | llvm-svn: 93463
* remove uses of deprecated functions, this generates slightlyChris Lattner2010-01-131-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 Lattner2010-01-131-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 SmallVectorChris Lattner2010-01-131-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 Lattner2010-01-131-2/+1
| | | | llvm-svn: 93293
* reduce nesting and code duplication in AsmPrinter::EmitGlobalConstantLargeInt.Chris Lattner2010-01-131-31/+26
| | | | llvm-svn: 93292
* reduce indentation and add a fast-path to EmitGlobalConstant for 8-byte Chris Lattner2010-01-131-5/+22
| | | | | | integers on 64-bit systems. llvm-svn: 93291
* reduce indentation and use early exits in AsmPrinter::EmitConstantValueOnlyChris Lattner2010-01-131-107/+122
| | | | llvm-svn: 93290
* fix PR5930, allowing the asmprinter to emit difference betweenChris Lattner2010-01-031-2/+8
| | | | | | two labels as a truncate. llvm-svn: 92455
* Remove dead store.Bill Wendling2009-12-251-1/+0
| | | | llvm-svn: 92156
* Fix a bunch of little errors that Clang complains about when its being pedanticDouglas Gregor2009-12-191-1/+1
| | | | llvm-svn: 91764
* Print newlines after printing labels for debug info, so that the outputDan Gohman2009-12-051-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 Gohman2009-12-051-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 Gohman2009-12-041-4/+6
| | | | llvm-svn: 90621
* Use new interfaces to print spill size.David Greene2009-12-041-6/+9
| | | | llvm-svn: 90611
* Use StringRef instead of std::string in DIEString.Devang Patel2009-11-241-1/+1
| | | | llvm-svn: 89793
* Target-independent support for TargetFlags on BlockAddress operands,Dan Gohman2009-11-201-4/+7
| | | | | | and support for blockaddresses in x86-32 PIC mode. llvm-svn: 89506
* Support spill comments.David Greene2009-11-161-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 Gupta2009-11-141-1/+1
| | | | llvm-svn: 88762
* Fix debug info crashes for PIC16.Sanjiv Gupta2009-11-141-1/+1
| | | | llvm-svn: 88761
* Use .data() instead of .c_str() when nul-termination is not needed.Dan Gohman2009-11-131-1/+1
| | | | llvm-svn: 88703
* Move DebugInfo checks into EmitComments and remove them fromDavid Greene2009-11-131-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 Patel2009-11-101-19/+18
| | | | llvm-svn: 86748
* Fix comment typos.Bob Wilson2009-11-061-3/+3
| | | | llvm-svn: 86295
* Factor out the printing of the leading tab into printInlineAsm.Dan Gohman2009-11-061-0/+2
| | | | llvm-svn: 86199
* Fix the label name generation for address-taken labels to avoid potentialDan Gohman2009-11-051-6/+10
| | | | | | problems with name collisions. llvm-svn: 86189
OpenPOWER on IntegriCloud