summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
Commit message (Collapse)AuthorAgeFilesLines
* The variable ValueSize is set to 1 on both code paths, and thenDuncan Sands2010-06-291-5/+1
| | | | | | ignored! Remove it. llvm-svn: 107138
* The variable "Value" is carefully set to Layout.getSymbolAddress,Duncan Sands2010-06-291-4/+0
| | | | | | but then not actually used - maybe a bug? Remove the variable. llvm-svn: 107137
* Remove unused calls to Lexer.getLoc and the pointless variable HasFillExpr.Duncan Sands2010-06-291-7/+0
| | | | llvm-svn: 107136
* Added the darwin .secure_log_unique and .secure_log_reset directives.Kevin Enderby2010-06-282-0/+70
| | | | llvm-svn: 107077
* Get the addend correct for i386 pic.Eric Christopher2010-06-221-1/+7
| | | | | | Thanks Daniel! llvm-svn: 106608
* "This is just a cosmetic change in MCAsmStreamer.cpp/EmitSymbolAttribute: ↵Chris Lattner2010-06-211-11/+11
| | | | | | | | | | | all attributes have now a \t before and after, as done for '.type'. This makes the output look consistent, as well as help some third party assemblers expecting the attributes to be in the second column." Patch by Arnaud de Grandmaison! llvm-svn: 106469
* Update comment.Eric Christopher2010-06-171-1/+2
| | | | llvm-svn: 106191
* In progress on 32-bit addends.Eric Christopher2010-06-161-1/+7
| | | | llvm-svn: 106154
* MC/Mach-O: Rewrite atom association to be a final pass we do in Finish(), ↵Daniel Dunbar2010-06-161-33/+46
| | | | | | | | instead of tracking as part of emission. - This allows sharing more code with the MCObjectStreamer. llvm-svn: 106143
* MC: Simplify MCAssembler::isSymbolLinkerVisible to only take an MCSymbol.Daniel Dunbar2010-06-163-10/+9
| | | | llvm-svn: 106142
* MC: Lift SwitchSection() and Finish() into MCObjectStreamer.Daniel Dunbar2010-06-162-42/+38
| | | | llvm-svn: 106141
* MC: Factor out an MCObjectStreamer class, which will be shared by the concreteDaniel Dunbar2010-06-163-29/+51
| | | | | | object file format writers. llvm-svn: 106140
* Fix indentation.Eric Christopher2010-06-161-4/+4
| | | | llvm-svn: 106072
* Some more work on mach-o TLV relocations.Eric Christopher2010-06-151-0/+38
| | | | llvm-svn: 106062
* Don't call flush() at a library level which isn't checking for errorsDan Gohman2010-06-012-2/+0
| | | | | | and doesn't know where the output is going. llvm-svn: 105274
* Rearrange conditionals so we don't get caught with the correct type as wrong.Eric Christopher2010-05-271-3/+3
| | | | llvm-svn: 104793
* MC: When running with -mc-relax-all, we can eagerly relax instructions and ↵Daniel Dunbar2010-05-262-21/+20
| | | | | | avoid creating unnecessary MCInstFragments. llvm-svn: 104736
* MC/Mach-O: Factor out EmitInstTo{Fragment,Data} for emitting MCInst's as ↵Daniel Dunbar2010-05-261-34/+46
| | | | | | MCInstFragments or appending onto an MCDataFragment. llvm-svn: 104735
* MC: Change RelaxInstruction to only take the input and output instructions.Daniel Dunbar2010-05-261-1/+1
| | | | llvm-svn: 104713
* MC: Eliminate an unnecessary copy.Daniel Dunbar2010-05-261-9/+4
| | | | llvm-svn: 104709
* MC: Simplify MayNeedRelaxation to not provide the fixups, so we can query itDaniel Dunbar2010-05-262-2/+2
| | | | | | before encoding. llvm-svn: 104707
* MC: Eliminate MCAsmFixup, replace with MCFixup.Daniel Dunbar2010-05-263-24/+20
| | | | llvm-svn: 104699
* MC: Use accessors for access to MCAsmFixup.Daniel Dunbar2010-05-263-19/+22
| | | | llvm-svn: 104697
* MC: Change MCInst::dump_pretty to not include a trailing newline.Daniel Dunbar2010-05-262-3/+5
| | | | llvm-svn: 104696
* MC: Eliminate MCFragment vtable, which was unnecessary.Daniel Dunbar2010-05-261-69/+62
| | | | llvm-svn: 104689
* Start adding mach-o tls reloc support.Eric Christopher2010-05-262-2/+10
| | | | llvm-svn: 104651
* llvm-mc: Use EmitIntValue where possible, which makes the API calls from the ↵Daniel Dunbar2010-05-231-3/+6
| | | | | | AsmParser and CodeGen line up better. llvm-svn: 104467
* llvm-mc: Use AddBlankLine in asm parser. This makes transliteration match ↵Daniel Dunbar2010-05-231-0/+9
| | | | | | the input much more closely, and also makes the API calls from the AsmParser and CodeGen line up better. llvm-svn: 104466
* MC: Add an MCLoggingStreamer, for use in debugging integrated-as mismatches.Daniel Dunbar2010-05-232-0/+209
| | | | llvm-svn: 104463
* Expand on comment.Eric Christopher2010-05-211-1/+2
| | | | llvm-svn: 104396
* Fix section attribute name.Eric Christopher2010-05-211-1/+1
| | | | llvm-svn: 104381
* Add support for parsing the ELF .type assembler directive.Matt Fleming2010-05-212-0/+50
| | | | llvm-svn: 104316
* Grammar fix. This is a test commit.Matt Fleming2010-05-201-1/+1
| | | | llvm-svn: 104264
* Reduce string trashing.Benjamin Kramer2010-05-201-2/+2
| | | | llvm-svn: 104223
* Partial code for emitting thread local bss data.Eric Christopher2010-05-202-0/+2
| | | | llvm-svn: 104197
* fix rdar://7986634 - match instruction opcodes case insensitively.Chris Lattner2010-05-191-1/+6
| | | | llvm-svn: 104183
* Implement EmitTBSSSymbol for MachOStreamer.Eric Christopher2010-05-181-5/+7
| | | | | | Fixes build failure as well. llvm-svn: 104059
* Make EmitTBSSSymbol take a section argument so that we can find it later.Eric Christopher2010-05-183-9/+15
| | | | | | Fix up callers and users. llvm-svn: 104057
* Incorporate Daniel's suggestion and use !isdigit(CurPtr[0]) and notKevin Enderby2010-05-181-1/+1
| | | | | | | CurPtr[0] == '\n' when testing the character after a "0b" when looking to see if it part of a something like "jmp 0b". llvm-svn: 104039
* Fixed the problem with a branch to "0b" that was not parsed by llvm-mcKevin Enderby2010-05-181-1/+0
| | | | | | | correctly. The Lexer was incorrectly eating the newline casusing it to branch to address 0. Updated the test case to use a "0:" label and a branch to "0b". llvm-svn: 104038
* MC/Mach-O: Implement support for setting indirect symbol table offset in ↵Daniel Dunbar2010-05-182-3/+15
| | | | | | | | section header. Also, create symbol data for LHS of assignment, to match 'as' symbol ordering better. llvm-svn: 104033
* MC/Mach-O: Remove some FIXMEs.Daniel Dunbar2010-05-181-7/+3
| | | | llvm-svn: 104032
* MC/Mach-O: Fail faster/harder when we see .file, which isn't yet supported.Daniel Dunbar2010-05-181-2/+2
| | | | llvm-svn: 104031
* Simplify MCContext::(Next|Get)InstanceBenjamin Kramer2010-05-181-24/+8
| | | | | | | - Allocate MCLabels in the context so they don't leak. - Avoid duplicated densemap lookup. llvm-svn: 104020
* Added support in MC for Directional Local Labels.Kevin Enderby2010-05-175-9/+117
| | | | llvm-svn: 103989
* More data/parsing support for tls directives. Add a few more testcasesEric Christopher2010-05-171-0/+10
| | | | | | and cleanup comments as well. llvm-svn: 103985
* MC/Mach-O/x86: Optimal nop sequences should only be used for the .text ↵Daniel Dunbar2010-05-171-8/+13
| | | | | | sections, not all sections in the text segment. llvm-svn: 103981
* MC: Add dyn_cast support to MCSection.Daniel Dunbar2010-05-171-1/+1
| | | | | | - Of questionable utility, since in general anything which wants to do this should probably be within a target specific hook, which can rely on the sections being of the appropriate type. However, it can be useful for short term hacks. llvm-svn: 103980
* MC/Mach-O: Reverse order of SymbolData scanning when emitting instructions.Daniel Dunbar2010-05-171-1/+1
| | | | | | | - This fixes a string table mismatch with 'as' when two new symbols are defined in a single instruction. llvm-svn: 103979
* Add some section and constant support for darwin TLS.Eric Christopher2010-05-171-1/+8
| | | | llvm-svn: 103974
OpenPOWER on IntegriCloud