Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Push twines deeper into SourceMgr's error handling methods. | Benjamin Kramer | 2010-09-27 | 1 | -9/+6 | |
| | | | | llvm-svn: 114847 | |||||
* | MC/AsmParser: Support .single and .double for embedding floating point literals. | Daniel Dunbar | 2010-09-24 | 1 | -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 | |||||
* | fix rdar://8456417 - llvm-mc can't do basic math | Chris Lattner | 2010-09-22 | 1 | -21/+22 | |
| | | | | llvm-svn: 114532 | |||||
* | Implement support for .local and its "interesting" interactions with .comm. | Rafael Espindola | 2010-09-21 | 1 | -0/+3 | |
| | | | | llvm-svn: 114382 | |||||
* | Fix an MSVC warning. | Daniel Dunbar | 2010-09-17 | 1 | -0/+3 | |
| | | | | llvm-svn: 114184 | |||||
* | MC/AsmParser: Add support for 'a + 4@GOTPCREL' and friends, by reconsing the | Daniel Dunbar | 2010-09-17 | 1 | -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 | |||||
* | Add support for the .zero directive. | Rafael Espindola | 2010-09-16 | 1 | -0/+22 | |
| | | | | llvm-svn: 114077 | |||||
* | Add a InitSections method to the streamer interface. | Rafael Espindola | 2010-09-15 | 1 | -5/+1 | |
| | | | | | | | | | | | | | | The ELF implementation now creates text, data and bss to match the gnu as behavior. The text streamer still has the old MachO specific behavior since the testsuite checks that it will error when a directive is given before a setting the current section for example. A nice benefit is that -n is not required anymore when producing ELF files. llvm-svn: 114027 | |||||
* | Add support for leb128 of absolute expressions. | Rafael Espindola | 2010-09-11 | 1 | -0/+49 | |
| | | | | llvm-svn: 113691 | |||||
* | fix the asmparser so that the target is responsible for skipping to | Chris Lattner | 2010-09-11 | 1 | -1/+3 | |
| | | | | | | | | | | | | | | the end of the line on a parser error, allowing skipping to happen for syntactic errors but not for semantic errors. Before we would miss emitting a diagnostic about the second line, because we skipped it due to the semantic error on the first line: foo %eax bar %al This fixes rdar://8414033 - llvm-mc ignores lines after an invalid instruction mnemonic errors llvm-svn: 113688 | |||||
* | llvm-mc: Don't crash when using -n and we see a directive before the initial ↵ | Daniel Dunbar | 2010-09-09 | 1 | -0/+30 | |
| | | | | | | | | section. - This is annoying, because we have to scatter this check everywhere that could emit real data, but I see no better solution. llvm-svn: 113552 | |||||
* | llvm-mc: Make sure we exit != 0 if any errors are encountered. | Daniel Dunbar | 2010-09-09 | 1 | -8/+10 | |
| | | | | llvm-svn: 113551 | |||||
* | change the MC "ParseInstruction" interface to make it the | Chris Lattner | 2010-09-08 | 1 | -7/+0 | |
| | | | | | | | implementation's job to check for and lex the EndOfStatement marker. llvm-svn: 113347 | |||||
* | Change the parsing of .loc back to allow the LineNumber field to be optional as | Kevin Enderby | 2010-08-24 | 1 | -7/+8 | |
| | | | | | | it is with other assemblers. llvm-svn: 111967 | |||||
* | First bit of support for the dwarf .loc directive. This patch updates the | Kevin Enderby | 2010-08-24 | 1 | -18/+80 | |
| | | | | | | | | | | needed parsing for the .loc directive and saves the current info from that into the context. The next patch will take the current loc info after an instruction is assembled and save that info into a vector for each section for use to build the line number tables. The patch after that will encode the info from those vectors into the output file as the dwarf line tables. llvm-svn: 111956 | |||||
* | MC/AsmParser: Change ParseExpression to use ParseIdentifier(), to support | Daniel Dunbar | 2010-08-24 | 1 | -5/+9 | |
| | | | | | | dollars in identifiers. llvm-svn: 111946 | |||||
* | MC/Parser: Accept leading dollar signs in identifiers. | Daniel Dunbar | 2010-08-24 | 1 | -0/+24 | |
| | | | | | | | | - Implemented by manually splicing the tokens. If this turns out to be problematically platform specific, a more elegant solution would be to implement some context dependent lexing support. llvm-svn: 111934 | |||||
* | MC/AsmParser: Push the burdon of emitting diagnostics about unmatched | Daniel Dunbar | 2010-08-12 | 1 | -8/+2 | |
| | | | | | | instructions onto the target specific parser, which can do a better job. llvm-svn: 110889 | |||||
* | llvm-mc: Add -show-inst-operands, for dumping the parsed instruction ↵ | Daniel Dunbar | 2010-08-11 | 1 | -0/+15 | |
| | | | | | | representation before matching. llvm-svn: 110791 | |||||
* | MC/AsmParser: Fix a bug in macro argument parsing, which was dropping | Daniel Dunbar | 2010-08-10 | 1 | -5/+7 | |
| | | | | | | parentheses from argument lists. llvm-svn: 110692 | |||||
* | MC: Destroy Macro instances. | Daniel Dunbar | 2010-07-29 | 1 | -0/+7 | |
| | | | | llvm-svn: 109720 | |||||
* | Added first bit of support for the dwarf .file directive. This patch collects | Kevin Enderby | 2010-07-28 | 1 | -1/+16 | |
| | | | | | | | the info from the .file directive and makes file and directory tables that will eventually be put out as part of the dwarf info in the output file. llvm-svn: 109651 | |||||
* | Make .align parse correctly on platforms where .align is measured in bytes. | Eli Friedman | 2010-07-19 | 1 | -5/+8 | |
| | | | | llvm-svn: 108674 | |||||
* | MC/AsmParser: Stop playing unsafe member function pointer calls, this isn't | Daniel Dunbar | 2010-07-18 | 1 | -19/+17 | |
| | | | | | | | | portable enough. - Downside is we now double dispatch through a stub function, but this isn't performance critical. llvm-svn: 108661 | |||||
* | MC/AsmParser: Fix .abort and .secure_log_unique to accept arbitrary token | Daniel Dunbar | 2010-07-18 | 1 | -14/+20 | |
| | | | | | | sequences, not just strings. llvm-svn: 108655 | |||||
* | MC/AsmParser: Add macro argument substitution support. | Daniel Dunbar | 2010-07-18 | 1 | -8/+85 | |
| | | | | llvm-svn: 108654 | |||||
* | MC/AsmParser: Add basic support for macro instantiation. | Daniel Dunbar | 2010-07-18 | 1 | -20/+112 | |
| | | | | llvm-svn: 108653 | |||||
* | MC/AsmParser: Add basic parsing support for .macro definitions. | Daniel Dunbar | 2010-07-18 | 1 | -0/+96 | |
| | | | | llvm-svn: 108652 | |||||
* | MC/AsmParser: Add .macros_{off,on} support, not that makes sense since we don't | Daniel Dunbar | 2010-07-18 | 1 | -5/+37 | |
| | | | | | | support macros. llvm-svn: 108649 | |||||
* | MC/AsmParser: Use Error() instead of calling PrintMessage() directly. | Daniel Dunbar | 2010-07-18 | 1 | -4/+2 | |
| | | | | llvm-svn: 108648 | |||||
* | MC/AsmParser: Hide the AsmParser implementation. | Daniel Dunbar | 2010-07-18 | 1 | -3/+117 | |
| | | | | llvm-svn: 108646 | |||||
* | MC/AsmParser: Lift Run() and TargetParser to base class. | Daniel Dunbar | 2010-07-17 | 1 | -7/+8 | |
| | | | | | | Also, add constructor function for creating AsmParser instances. llvm-svn: 108604 | |||||
* | fix indentation and 80 cols | Chris Lattner | 2010-07-15 | 1 | -2/+3 | |
| | | | | llvm-svn: 108460 | |||||
* | Don't pass StringRef by reference. | Benjamin Kramer | 2010-07-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 108366 | |||||
* | MC/AsmParser: Move ELF specific parser to ELFAsmParser.cpp. | Daniel Dunbar | 2010-07-12 | 1 | -43/+2 | |
| | | | | llvm-svn: 108196 | |||||
* | MC/AsmParser: Move Darwin specific parse to DarwinAsmParser.cpp. | Daniel Dunbar | 2010-07-12 | 1 | -728/+7 | |
| | | | | llvm-svn: 108193 | |||||
* | MC/AsmParser: Move .section parsing to Darwin specific parser. | Daniel Dunbar | 2010-07-12 | 1 | -13/+10 | |
| | | | | llvm-svn: 108190 | |||||
* | MC/AsmParser: Move special section directive parsing to Darwin specific parser. | Daniel Dunbar | 2010-07-12 | 1 | -158/+316 | |
| | | | | llvm-svn: 108187 | |||||
* | MC/AsmParser: Add a basic ELFAsmParser extension. | Daniel Dunbar | 2010-07-12 | 1 | -0/+45 | |
| | | | | llvm-svn: 108185 | |||||
* | MC/AsmParser: Inline AsmParser::CreateSymbol into callers. | Daniel Dunbar | 2010-07-12 | 1 | -11/+6 | |
| | | | | llvm-svn: 108183 | |||||
* | MC/AsmParser: Move .tbss and .zerofill parsing to Darwin specific parser. | Daniel Dunbar | 2010-07-12 | 1 | -26/+30 | |
| | | | | llvm-svn: 108180 | |||||
* | MC/AsmParser: Move .desc parsing to Darwin specific parser. | Daniel Dunbar | 2010-07-12 | 1 | -7/+8 | |
| | | | | llvm-svn: 108179 | |||||
* | MC/AsmParser: Move .lsym parsing to Darwin specific parser. | Daniel Dunbar | 2010-07-12 | 1 | -8/+9 | |
| | | | | llvm-svn: 108176 | |||||
* | MC/AsmParser: Move some misc. Darwin directive handling to DarwinAsmParser. | Daniel Dunbar | 2010-07-12 | 1 | -23/+34 | |
| | | | | llvm-svn: 108174 | |||||
* | MC/AsmParser: Add a DarwinAsmParser extension. | Daniel Dunbar | 2010-07-12 | 1 | -1/+24 | |
| | | | | | | | - Currently initialization is a bit of a hack, but harmless. We need to rework various parts of target initialization to clean this up. llvm-svn: 108165 | |||||
* | MC/AsmParser: Switch a bunch of directive parsing to use accessors. | Daniel Dunbar | 2010-07-12 | 1 | -112/+114 | |
| | | | | llvm-svn: 108163 | |||||
* | MCAsmParser: Pull some directive handling out into a helper class, and change | Daniel Dunbar | 2010-07-12 | 1 | -15/+43 | |
| | | | | | | DirectiveMap to be based on MCAsmParserExtension. llvm-svn: 108161 | |||||
* | MC/AsmParser: Switch some directive parsing to use accessor methods. | Daniel Dunbar | 2010-07-12 | 1 | -17/+17 | |
| | | | | llvm-svn: 108160 | |||||
* | MC: Add MCAsmParserExtension, a base class for all the target/object specific | Daniel Dunbar | 2010-07-12 | 1 | -0/+6 | |
| | | | | | | classes which want to extend the basic asm parser. llvm-svn: 108158 | |||||
* | MC: Move AsmParser::TokError to MCAsmParser(). | Daniel Dunbar | 2010-07-12 | 1 | -5/+0 | |
| | | | | llvm-svn: 108155 |