Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Pass StringRef by value. | Daniel Dunbar | 2009-11-06 | 10 | -16/+15 |
| | | | | llvm-svn: 86251 | ||||
* | Move DataTypes.h to include/llvm/System, update all users. This breaks the last | Chandler Carruth | 2009-10-26 | 1 | -1/+1 |
| | | | | | | direct inclusion edge from System to Support. llvm-svn: 85086 | ||||
* | add a twine version of MCContext::GetOrCreateSymbol. | Chris Lattner | 2009-10-19 | 1 | -1/+9 |
| | | | | llvm-svn: 84561 | ||||
* | MC: Set symbol values in MachO MCStreamer. | Daniel Dunbar | 2009-10-16 | 1 | -1/+3 |
| | | | | llvm-svn: 84236 | ||||
* | Minor formatting tweaks. | Daniel Dunbar | 2009-10-16 | 2 | -34/+34 |
| | | | | llvm-svn: 84235 | ||||
* | MC: Switch assembler API to using MCExpr instead of MCValue. | Daniel Dunbar | 2009-10-16 | 2 | -31/+41 |
| | | | | llvm-svn: 84234 | ||||
* | MC: Remove unneeded context argument to MCExpr::Evaluate*. | Daniel Dunbar | 2009-10-16 | 2 | -9/+8 |
| | | | | llvm-svn: 84233 | ||||
* | MC: Tweak variable assignment diagnostics, and make reassignment of non-absolute | Daniel Dunbar | 2009-10-16 | 1 | -0/+1 |
| | | | | | | variables and symbols invalid. llvm-svn: 84232 | ||||
* | MC: When parsing a variable reference, substitute absolute variables immediately | Daniel Dunbar | 2009-10-16 | 1 | -1/+4 |
| | | | | | | since they are allowed to be redefined. llvm-svn: 84230 | ||||
* | MC: Move assembler variable values from MCContext to MCSymbol. | Daniel Dunbar | 2009-10-16 | 1 | -2/+5 |
| | | | | llvm-svn: 84229 | ||||
* | MC: Switch MCContext value table to storing MCExprs. | Daniel Dunbar | 2009-10-16 | 2 | -21/+3 |
| | | | | llvm-svn: 84228 | ||||
* | Fixed MCSectionMachO::ParseSectionSpecifier to allow an attribute of "none" so | Kevin Enderby | 2009-10-07 | 1 | -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'Callaghan | 2009-10-05 | 2 | -2/+2 |
| | | | | llvm-svn: 83318 | ||||
* | eliminate a use of strtoul. | Chris Lattner | 2009-09-20 | 1 | -12/+2 |
| | | | | llvm-svn: 82382 | ||||
* | Allow symbols to start from the digit if target requests it. This allows, ↵ | Anton Korobeynikov | 2009-09-18 | 2 | -6/+10 |
| | | | | | | | | | e.g. pinning variables to specified absolute address. Make use of this feature for MSP430. This unbreaks PR4776. llvm-svn: 82227 | ||||
* | Big change #1 for personality function references: | Chris Lattner | 2009-09-16 | 2 | -5/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | Eliminate the PersonalityPrefix/Suffix & NeedsIndirectEncoding fields from MAI: they aren't part of the asm syntax, they are related to the structure of the object file. To replace their functionality, add a new TLOF::getSymbolForDwarfGlobalReference method which asks targets to decide how to reference a global from EH in a pc-relative way. The default implementation just returns the symbol. The default darwin implementation references the symbol through an indirect $non_lazy_ptr stub. The bizarro x86-64 darwin specialization handles the weird "foo@GOTPCREL+4" hack. DwarfException.cpp now uses this to emit the reference to the symbol in the right way, and this also eliminates another horrible hack from DwarfException.cpp: - if (strcmp(MAI->getPersonalitySuffix(), "+4@GOTPCREL")) - O << "-" << MAI->getPCSymbol(); llvm-svn: 81991 | ||||
* | add a helper method for creating MCSymbol and MCSymbolRefExpr at | Chris Lattner | 2009-09-16 | 1 | -0/+6 |
| | | | | | | the same time. llvm-svn: 81984 | ||||
* | remove some horrible MAI hooks which fortunately turn out to be always empty. | Chris Lattner | 2009-09-15 | 1 | -4/+0 |
| | | | | llvm-svn: 81946 | ||||
* | Update CMake. | Daniel Dunbar | 2009-09-14 | 1 | -0/+1 |
| | | | | llvm-svn: 81757 | ||||
* | Change MCAsmStreamer to take an MCInstPrinter instead of a | Chris Lattner | 2009-09-14 | 1 | -8/+8 |
| | | | | | | | | | | | full AsmPrinter, and change TargetRegistry to keep track of registered MCInstPrinters. llvm-mc is still linking in the entire target foo to get the code emitter stuff, but this is an important step in the right direction. llvm-svn: 81754 | ||||
* | add a new MCInstPrinter class, move the (trivial) MCDisassmbler ctor inline. | Chris Lattner | 2009-09-14 | 2 | -3/+14 |
| | | | | llvm-svn: 81745 | ||||
* | 'printMCInst' doesn't print newlines after instructions anymore. | Chris Lattner | 2009-09-13 | 1 | -0/+1 |
| | | | | llvm-svn: 81723 | ||||
* | remove MAI::JumpTableSpecialLabelPrefix now that MAI | Chris Lattner | 2009-09-13 | 2 | -7/+0 |
| | | | | | | has real information about linker private linkage. llvm-svn: 81695 | ||||
* | fix MCSymbol printing on darwin to exactly match the mangler (handling of \n ↵ | Chris Lattner | 2009-09-13 | 1 | -8/+28 |
| | | | | | | and " in a symbol name). llvm-svn: 81683 | ||||
* | Make the MC symbol printer and llvm::Mangler exactly agree on mangling | Chris Lattner | 2009-09-13 | 1 | -20/+50 |
| | | | | | | for systems that don't support quoting (PR4966). llvm-svn: 81682 | ||||
* | eliminate the "MBBLabel" MCOperand type, and just use a MCSymbol for | Chris Lattner | 2009-09-12 | 1 | -3/+0 |
| | | | | | | MBB labels like everything else. llvm-svn: 81628 | ||||
* | Update CMake files. | Ted Kremenek | 2009-09-11 | 1 | -0/+1 |
| | | | | llvm-svn: 81577 | ||||
* | canonicalize namespace gymnastics | Chris Lattner | 2009-09-09 | 1 | -2/+3 |
| | | | | llvm-svn: 81402 | ||||
* | Added an abstract superclass, MCDisassembler, for | Sean Callanan | 2009-09-09 | 1 | -0/+16 |
| | | | | | | | | | | | | | all disassemblers. Modified the MemoryObject to support 64-bit address spaces, regardless of the LLVM process's address width. Modified the Target class to allow extraction of a MCDisassembler. llvm-svn: 81392 | ||||
* | allow @ in symbol names without quoting the identifier. This | Chris Lattner | 2009-09-09 | 1 | -1/+1 |
| | | | | | | allows things like @PLT without quotes. llvm-svn: 81296 | ||||
* | parenthesize symbol names that start with $, fixing X86/dollar-name.ll with | Chris Lattner | 2009-09-08 | 1 | -2/+13 |
| | | | | | | the new asmprinter. llvm-svn: 81269 | ||||
* | Print "X-42" instead of "X+-42". | Chris Lattner | 2009-09-08 | 1 | -1/+11 |
| | | | | llvm-svn: 81203 | ||||
* | make formatting of expressions more closely match the existing asmprinter. | Chris Lattner | 2009-09-08 | 1 | -6/+19 |
| | | | | llvm-svn: 81202 | ||||
* | tidy whitespace. | Chris Lattner | 2009-09-08 | 1 | -7/+4 |
| | | | | llvm-svn: 81201 | ||||
* | fix MCSymbol printing to exactly match the normal mangler rules so | Chris Lattner | 2009-09-03 | 1 | -19/+23 |
| | | | | | | we can diff .s files. llvm-svn: 80894 | ||||
* | Thread an MCAsmInfo pointer through the various MC printing APIs, | Chris Lattner | 2009-09-03 | 5 | -29/+38 |
| | | | | | | | and fix a few things using << on MCSymbols to use ->print(). No functionality change other than unbreaking my previous patch. llvm-svn: 80890 | ||||
* | inline insertion operators. | Chris Lattner | 2009-09-03 | 1 | -15/+9 |
| | | | | llvm-svn: 80888 | ||||
* | output alignment value in hex so that we get: | Chris Lattner | 2009-09-03 | 1 | -1/+2 |
| | | | | | | | | | | .align 3, 0x90 instead of, .align 3, 144 suggested by eric. llvm-svn: 80875 | ||||
* | llvm-mc: Store MCSymbolData value as a pointer (to make MSVC happy). | Daniel Dunbar | 2009-09-01 | 1 | -2/+2 |
| | | | | llvm-svn: 80652 | ||||
* | llvm-mc: Pass values to MCStreamer as MCExprs, not MCValues. | Daniel Dunbar | 2009-08-31 | 3 | -34/+37 |
| | | | | llvm-svn: 80578 | ||||
* | llvm-mc: Simplify EmitAssignment ('.set' is identical to '='). | Daniel Dunbar | 2009-08-31 | 3 | -25/+6 |
| | | | | llvm-svn: 80577 | ||||
* | llvm-mc: Switch MCInst to storing an MCExpr* instead of an MCValue. | Daniel Dunbar | 2009-08-31 | 3 | -27/+35 |
| | | | | | | Also, use MCInst::print instead of custom code in MCAsmPrinter. llvm-svn: 80575 | ||||
* | llvm-mc: Make MCSymbolData symbol member const. | Daniel Dunbar | 2009-08-31 | 2 | -6/+6 |
| | | | | llvm-svn: 80573 | ||||
* | llvm-mc: Add MCContext to MCAssembler. | Daniel Dunbar | 2009-08-31 | 2 | -4/+3 |
| | | | | llvm-svn: 80572 | ||||
* | llvm-mc: Add MCExpr::{dump,print}. | Daniel Dunbar | 2009-08-31 | 1 | -0/+67 |
| | | | | llvm-svn: 80570 | ||||
* | llvm-mc: Switch MCExpr construction to using static member functions, and ↵ | Daniel Dunbar | 2009-08-31 | 1 | -8/+28 |
| | | | | | | taking the MCContext (which now owns all MCExprs). llvm-svn: 80569 | ||||
* | llvm-mc: Move AsmExpr into MC lib (as MCExpr). | Daniel Dunbar | 2009-08-31 | 2 | -0/+163 |
| | | | | llvm-svn: 80567 | ||||
* | llvm-mc: MCStreamer cleanups. - Remove EmitLocalSymbol, this is unsupported ↵ | Daniel Dunbar | 2009-08-30 | 3 | -32/+16 |
| | | | | | | | | for now. - Switch Emit{CommonSymbol,Zerofill} to take alignment in bytes (for consistency). llvm-svn: 80484 | ||||
* | llvm-mc: .lsym is more unsupported than unimplemented, pending a use case ↵ | Daniel Dunbar | 2009-08-28 | 1 | -5/+5 |
| | | | | | | | | appearing. Also, all one of the file level flags are implemented. llvm-svn: 80352 | ||||
* | llvm-mc: Support .comm emission. | Daniel Dunbar | 2009-08-28 | 2 | -14/+41 |
| | | | | llvm-svn: 80351 |