summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
Commit message (Collapse)AuthorAgeFilesLines
* move some files out of the llvm-mc tool into the MCParser library soChris Lattner2010-01-222-0/+2085
| | | | | | other tools can link it. llvm-svn: 94131
* forgot to svn add these, doh.Chris Lattner2010-01-222-0/+22
| | | | llvm-svn: 94130
* create a new MCParser library and move some stuff into it.Chris Lattner2010-01-225-7/+5
| | | | llvm-svn: 94129
* don't forget to initialize an instance variable!Chris Lattner2010-01-201-2/+2
| | | | llvm-svn: 94021
* use getGlobalDirective(), don't hardcode .globl. PR6093Chris Lattner2010-01-201-13/+13
| | | | llvm-svn: 94006
* make mcasmstreamer handle expanding 8 byte integer constants to Chris Lattner2010-01-201-3/+12
| | | | | | | 4-byte constants if .quad isn't supported. Switch a bunch of methods used by the dwarf writer to use OutStreamer.EmitIntValue. llvm-svn: 93987
* give createAsmStreamer an 'isLittleEndian' argument.Chris Lattner2010-01-201-3/+8
| | | | llvm-svn: 93986
* revert 93934, removing the MCAsmInfo endianness bit. I can'tChris Lattner2010-01-203-5/+3
| | | | | | | stomache MCAsmInfo having this, and I found a better solution to this layering issue. llvm-svn: 93985
* give MCAsmInfo a 'has little endian' bit. This is unfortunate, butChris Lattner2010-01-193-3/+5
| | | | | | | | | I really want clients of the streamer to be able to say "emit this 64-bit integer" and have it get broken down right by the streamer. I may change this in the future, we'll see how it works out. llvm-svn: 93934
* add a new EmitIntValue method that MCStreamer impls can optionally defineChris Lattner2010-01-192-6/+36
| | | | | | and that clients can use. llvm-svn: 93923
* Promoted the getTok() method to MCAsmParser so thatSean Callanan2010-01-191-1/+5
| | | | | | | the two token accessor functions are declared consistently. Modified the clients of MCAsmParser to reflect this change. llvm-svn: 93916
* Generalize mcasmstreamer data emission APIs to take an address spaceChris Lattner2010-01-194-33/+41
| | | | | | identifier. There is no way to work around it. llvm-svn: 93896
* mcstreamerize AsmPrinter::EmitZeros, at least when emitting to the Chris Lattner2010-01-191-0/+2
| | | | | | default address space. llvm-svn: 93890
* add an MCAsmStreamer::EmitFill specialization of EmitFill thatChris Lattner2010-01-191-0/+15
| | | | | | | emits one directive instead of N. Not doing this would be a significant regression on the # bytes generated by .fill. llvm-svn: 93889
* add a "MCStreamer::EmitFill" method, and move the default implementationChris Lattner2010-01-191-0/+9
| | | | | | (which just iteratively emits bytes) to MCStreamer. llvm-svn: 93888
* remove MAI::ZeroDirectiveSuffix, which is only used by MASM,Chris Lattner2010-01-191-1/+0
| | | | | | which we don't support anymore. llvm-svn: 93886
* stop using the .lcomm pseudoop on darwin, instead, directly use theChris Lattner2010-01-192-3/+2
| | | | | | .zerofill directive. Streamerize its generation. llvm-svn: 93868
* mc'ize some stuff, don't comment out .lcomm directive in -fverbose-asm mode.Chris Lattner2010-01-191-3/+7
| | | | llvm-svn: 93860
* hookize the cygwin ".linkonce" directive.Chris Lattner2010-01-192-0/+2
| | | | llvm-svn: 93855
* add a bool for whether .lcomm takes an alignment instead of basing this on ↵Chris Lattner2010-01-192-0/+2
| | | | | | "isdarwin". llvm-svn: 93852
* move production of .reference directives for static ctor/dtor list onChris Lattner2010-01-192-0/+2
| | | | | | darwin into common code. llvm-svn: 93849
* Cleanup handling of .zerofill on darwin:Chris Lattner2010-01-192-2/+2
| | | | | | | | | | | | | 1. TargetLoweringObjectFileMachO should decide if something goes in zerofill instead of having every target do it. 2. TargetLoweringObjectFileMachO should assign said symbols to the right MCSection, the asmprinters should just emit to the right section. 3. Since all zerofill stuff goes through mcstreamer anymore, MAI can have a bool "haszerofill" instead of having the textual directive to emit. llvm-svn: 93838
* Remove this fixme, looking at the linker source, all targets pad to 4 bytes.Nate Begeman2010-01-191-2/+0
| | | | llvm-svn: 93835
* remove the MAI argument to MCExpr::print and switch overthing to use << when ↵Chris Lattner2010-01-183-23/+11
| | | | | | printing them. llvm-svn: 93699
* now that MCSymbol::print doesn't use it's MAI argument, we can Chris Lattner2010-01-174-31/+15
| | | | | | | remove it and change all the code that prints MCSymbols to use << instead, which is much simpler and cleaner. llvm-svn: 93695
* rename NameNeedsEscaping -> NameNeedsQuoting, eliminate the checkChris Lattner2010-01-171-9/+4
| | | | | | | for first character which is a digit, mangler would have taken care of this already. llvm-svn: 93694
* Get MCSymbol out of the mangling business, and move all the logicChris Lattner2010-01-171-57/+4
| | | | | | | | | | | to Mangler. Now MCSymbol just decides whether to slap quotes around a symbol when printing it. This also fixes some weirdness where two MCSymbols could be created for the same symbol, if one needed to be mangled and got mangled to the other one. llvm-svn: 93690
* Add a note for the macho streamer and remove a used of the mangler from the ↵Nate Begeman2010-01-171-0/+2
| | | | | | soon to be defunct machowriter pass. llvm-svn: 93670
* unbreak the build, grr symlinks.Chris Lattner2010-01-151-1/+1
| | | | llvm-svn: 93539
* extend MCAsmParser::ParseExpression and ParseParenExpressionChris Lattner2010-01-151-1/+14
| | | | | | | to return range information for subexpressions. Use this to provide range info for several new X86Operands. llvm-svn: 93534
* tidyChris Lattner2010-01-131-4/+3
| | | | llvm-svn: 93352
* expose a static function as a static method on the MCSymbol class.Chris Lattner2010-01-131-4/+7
| | | | llvm-svn: 93350
* Change errs() to dbgs().David Greene2010-01-051-4/+5
| | | | llvm-svn: 92635
* Change errs() to dbgs().David Greene2010-01-051-1/+2
| | | | llvm-svn: 92634
* Change errs() to dbgs().David Greene2010-01-051-1/+2
| | | | llvm-svn: 92632
* Change errs() to dbgs().David Greene2010-01-051-2/+3
| | | | llvm-svn: 92630
* Pass StringRef by value.Daniel Dunbar2009-11-0610-16/+15
| | | | llvm-svn: 86251
* Move DataTypes.h to include/llvm/System, update all users. This breaks the lastChandler Carruth2009-10-261-1/+1
| | | | | | direct inclusion edge from System to Support. llvm-svn: 85086
* add a twine version of MCContext::GetOrCreateSymbol.Chris Lattner2009-10-191-1/+9
| | | | llvm-svn: 84561
* MC: Set symbol values in MachO MCStreamer.Daniel Dunbar2009-10-161-1/+3
| | | | llvm-svn: 84236
* Minor formatting tweaks.Daniel Dunbar2009-10-162-34/+34
| | | | llvm-svn: 84235
* MC: Switch assembler API to using MCExpr instead of MCValue.Daniel Dunbar2009-10-162-31/+41
| | | | llvm-svn: 84234
* MC: Remove unneeded context argument to MCExpr::Evaluate*.Daniel Dunbar2009-10-162-9/+8
| | | | llvm-svn: 84233
* MC: Tweak variable assignment diagnostics, and make reassignment of non-absoluteDaniel Dunbar2009-10-161-0/+1
| | | | | | variables and symbols invalid. llvm-svn: 84232
* MC: When parsing a variable reference, substitute absolute variables immediatelyDaniel Dunbar2009-10-161-1/+4
| | | | | | since they are allowed to be redefined. llvm-svn: 84230
* MC: Move assembler variable values from MCContext to MCSymbol.Daniel Dunbar2009-10-161-2/+5
| | | | llvm-svn: 84229
* MC: Switch MCContext value table to storing MCExprs.Daniel Dunbar2009-10-162-21/+3
| | | | llvm-svn: 84228
* Fixed MCSectionMachO::ParseSectionSpecifier to allow an attribute of "none" soKevin Enderby2009-10-071-4/+6
| | | | | | | that a symbol stub section with no attributes can be parsed as in: .section __TEXT,__picsymbolstub4,symbol_stubs,none,16 llvm-svn: 83488
* No newline at end of files.Edward O'Callaghan2009-10-052-2/+2
| | | | llvm-svn: 83318
* eliminate a use of strtoul.Chris Lattner2009-09-201-12/+2
| | | | llvm-svn: 82382
OpenPOWER on IntegriCloud