summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
Commit message (Collapse)AuthorAgeFilesLines
* Changes EvaluateAsAbsolute() to return the "current value" of the expressionKevin Enderby2010-09-301-1/+16
| | | | | | | | if we are given a Layout object, even in cases when the value is not fixed. This will be needed by the final patch for the dwarf .loc support to size a new MCDwarf fragment needed to build and emit dwarf line number tables. llvm-svn: 115155
* Silence a GCC warning about not handling all flags in this switch, weChandler Carruth2010-09-301-2/+2
| | | | | | specifically assert on unexpected flags. llvm-svn: 115143
* Move logic of determining ELF entsize from the .s printer to initializationJan Wen Voung2010-09-302-12/+15
| | | | | | | time. That way, the EntrySize field is initialized for other code paths, namely, the .ll -> .o code path. llvm-svn: 115141
* Correctly produce R_X86_64_32 or R_X86_64_32S.Rafael Espindola2010-09-303-8/+12
| | | | | | | | | | | | | With this patch in movq $foo, foo(%rip) foo: .long foo We produce a R_X86_64_32S for the first relocation and R_X86_64_32 for the second one. llvm-svn: 115134
* Tiny patch for proof-of-concept cleanup of ARMAsmPrinter::EmitStartOfAsmFile()Jason W Kim2010-09-302-0/+2
| | | | | | | Small test for sanity check of resulting ARM .s file. Tested against -r115129. llvm-svn: 115133
* Have ELFAsmParser.cpp use the already parsed "Size" (entry size) when Jan Wen Voung2010-09-301-1/+2
| | | | | | constructing a section. Test for a few cases also included. llvm-svn: 115132
* Make it possible for the MCObjectWriter to decide if a given fixup is fullyRafael Espindola2010-09-304-132/+208
| | | | | | | | | | | resolved or not. Different object files have different restrictions and different native assemblers have different idiosyncrasies we want to emulate for now. Move the existing MachO logic to the new place and implement an ELF one that gets fixups to globals right. llvm-svn: 115131
* Test commit - Deleted some whitespace at the end of a line.Jan Wen Voung2010-09-301-1/+1
| | | | llvm-svn: 115122
* Move "local commons" to the end of .bss to match the gnu as behavior.Rafael Espindola2010-09-291-9/+29
| | | | llvm-svn: 115037
* MC-COFF: Fix symbol storage class for globalsMichael J. Spencer2010-09-291-1/+1
| | | | llvm-svn: 115020
* change the protocol TargetAsmPArser::MatchInstruction method to take anChris Lattner2010-09-291-9/+3
| | | | | | | MCStreamer to emit into instead of an MCInst to fill in. This allows the matcher extra flexibility and is more convenient. llvm-svn: 115014
* On elf, undefined symbols can start with .L.Rafael Espindola2010-09-281-1/+4
| | | | llvm-svn: 114958
* Write relocations in the end of the file. This matches what gas does andRafael Espindola2010-09-271-2/+1
| | | | | | makes files easier to diff. llvm-svn: 114898
* Make sure .text doesn't produce extra alignment.Rafael Espindola2010-09-271-9/+3
| | | | llvm-svn: 114895
* Factor symbol value computation into a function.Rafael Espindola2010-09-271-9/+17
| | | | llvm-svn: 114891
* MC-COFF: Fix signed/unsigned comparison.Michael J. Spencer2010-09-271-2/+2
| | | | llvm-svn: 114888
* MC/AsmParser: Handle exponents in floating point literals.Daniel Dunbar2010-09-271-9/+30
| | | | llvm-svn: 114861
* Remove unused argument.Rafael Espindola2010-09-272-7/+6
| | | | llvm-svn: 114852
* Push twines deeper into SourceMgr's error handling methods.Benjamin Kramer2010-09-271-9/+6
| | | | llvm-svn: 114847
* MC-COFF: Drop empty sections, and label symbols. Convert relocationsMichael J. Spencer2010-09-271-82/+163
| | | | | | | | targeted at symbols into relocations relative to the containing section. Patch by Nathan Jeffords! llvm-svn: 114823
* Move ELF to HasReliableSymbolDifference=true. Also take the opportunity to putRafael Espindola2010-09-252-11/+72
| | | | | | symbols defined in merge sections in independent atoms. llvm-svn: 114786
* Reapply 114678 and 114667. Reverting them did not fix the bot:Rafael Espindola2010-09-241-2/+5
| | | | | | http://google1.osuosl.org:8011/builders/llvm-gcc-i386-linux-selfhost/builds/69 llvm-svn: 114761
* Revert 114678 and 114667 to see ifRafael Espindola2010-09-241-5/+2
| | | | | | | | http://google1.osuosl.org:8011/builders/llvm-gcc-i386-linux-selfhost gets happy. llvm-svn: 114742
* MC/AsmParser: Handle a missed case of floating literals in the lexer.Daniel Dunbar2010-09-241-1/+1
| | | | llvm-svn: 114733
* MC/AsmParser: Support .single and .double for embedding floating point literals.Daniel Dunbar2010-09-241-0/+56
| | | | | | | - I believe more modern 'gas' supports a more enhanced set of arithmetic on them, but for now the only thing we can do is emit them as data. llvm-svn: 114719
* MC/Lexer: Add 'Real' token type for floating point literals.Daniel Dunbar2010-09-241-5/+24
| | | | llvm-svn: 114718
* MC: Add missing ')' in diagnostic.Daniel Dunbar2010-09-241-1/+1
| | | | llvm-svn: 114717
* Correctly handle weak undefined symbols. Before we would get a invalid bindingRafael Espindola2010-09-231-5/+20
| | | | | | (2 == STB_WEAK | STB_GLOBAL). llvm-svn: 114690
* Correctly compute the offset of the symbol. Forgot these bits from theRafael Espindola2010-09-231-1/+4
| | | | | | last commit. llvm-svn: 114678
* Represent relocations against local symbols as relocations against the sectionRafael Espindola2010-09-231-1/+1
| | | | | | | | | they are in. Both ways should be equivalent, but gas produces relocations against the section. Roman wrote the patch, I added the test. llvm-svn: 114667
* Fix the FIXME.Rafael Espindola2010-09-231-1/+1
| | | | llvm-svn: 114639
* Fixed a crash in the enhanced disassembler whereSean Callanan2010-09-231-0/+2
| | | | | | | because of the lack of a newline, AsmToken::Eof was being found instead of AsmToken::EndOfStatement. llvm-svn: 114621
* Add support for ELF PLT references for ARM MC asm printing. Adding aJim Grosbach2010-09-221-3/+6
| | | | | | | | new VariantKind to the MCSymbolExpr seems like overkill, but I'm not sure there's a more straightforward way to get the printing difference captured. (i.e., x86 uses @PLT, ARM uses (PLT)). llvm-svn: 114613
* Avoid some Mach-O specific alignment being done on ELF.Rafael Espindola2010-09-225-23/+28
| | | | llvm-svn: 114594
* allow target-specific label suffixes, patch by Yuri Gribov!Chris Lattner2010-09-222-1/+2
| | | | llvm-svn: 114592
* Fix typo and add a FIXME.Rafael Espindola2010-09-221-1/+2
| | | | llvm-svn: 114570
* grammar tweakageJim Grosbach2010-09-221-2/+2
| | | | llvm-svn: 114561
* remove trailing whitespaceJim Grosbach2010-09-221-31/+31
| | | | llvm-svn: 114560
* Correctly align bss.Rafael Espindola2010-09-221-0/+6
| | | | llvm-svn: 114556
* fix rdar://8456417 - llvm-mc can't do basic mathChris Lattner2010-09-221-21/+22
| | | | llvm-svn: 114532
* Revert unrelated change that was accidentally included in the previous commit.Rafael Espindola2010-09-211-4/+1
| | | | llvm-svn: 114383
* Implement support for .local and its "interesting" interactions with .comm.Rafael Espindola2010-09-213-11/+36
| | | | llvm-svn: 114382
* Produce a R_X86_64_32 when the value is >=0.Rafael Espindola2010-09-201-2/+5
| | | | llvm-svn: 114339
* Make sure the STT_FILE symbol is the first one in the symbol table.Rafael Espindola2010-09-181-0/+13
| | | | llvm-svn: 114285
* Avoid relocations in a common case.Rafael Espindola2010-09-171-1/+10
| | | | llvm-svn: 114229
* Fix an MSVC warning.Daniel Dunbar2010-09-171-0/+3
| | | | llvm-svn: 114184
* MC/Mach-O/i386: Fix a crash in relocation handling.Daniel Dunbar2010-09-171-1/+2
| | | | llvm-svn: 114176
* MC/AsmParser: Add support for 'a + 4@GOTPCREL' and friends, by reconsing theDaniel Dunbar2010-09-171-2/+81
| | | | | | | | | expression to include the modifier. - Gross, but this a corner case we don't expect to see often in practice, but it is worth accepting. - Also improves diagnostics on invalid modifiers. llvm-svn: 114154
* Print the address of sections as 0 and create the metadata sections in theRafael Espindola2010-09-161-33/+24
| | | | | | same order as gnu as. llvm-svn: 114109
* Make sure that names like .note.GNU-stack are accepted as valid section names.Rafael Espindola2010-09-161-2/+37
| | | | llvm-svn: 114091
OpenPOWER on IntegriCloud