llvm-6502/lib/MC
Kevin Enderby 064e48a3dc Fixed a bug in the code to create a dwarf file and directory table entires when
it is separating the directory part from the basename of the FileName.  Noticed 
that this:

  .file 1 "dir/foo"

when assembled got the two parts switched.  Using the Mac OS X dwarfdump tool
it can be seen easily:

% dwarfdump -a a.out
include_directories[  1] = 'foo'
                Dir  Mod Time   File Len   File Name
                ---- ---------- ---------- ---------------------------
file_names[  1]    1 0x00000000 0x00000000 dir
...

Which should be:
...
include_directories[  1] = 'dir'
                Dir  Mod Time   File Len   File Name
                ---- ---------- ---------- ---------------------------
file_names[  1]    1 0x00000000 0x00000000 foo


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143521 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-01 23:39:05 +00:00
..
MCDisassembler Enhance llvm::SourceMgr to support diagnostic ranges, the same way clang does. Enhance 2011-10-16 04:47:35 +00:00
MCParser First part of support for generating dwarf for assembly source files with the 2011-11-01 22:27:22 +00:00
CMakeLists.txt Sort CMakeLists.txt. 2011-09-24 22:06:35 +00:00
ELFObjectWriter.cpp Also create a shndx even if there are no symbols. This lets us test 2011-10-11 03:54:50 +00:00
ELFObjectWriter.h Add definition of MipsELFObjectWriter. 2011-09-30 21:55:40 +00:00
MachObjectWriter.cpp Formatting and typo. 2011-09-08 22:17:40 +00:00
Makefile
MCAsmBackend.cpp Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to createMCAsmBackend. 2011-07-25 23:24:55 +00:00
MCAsmInfo.cpp Teach our Dwarf emission to use the string pool. 2011-10-27 06:44:11 +00:00
MCAsmInfoCOFF.cpp Teach the MC to output code/data region marker labels in MachO and ELF modes. These are used by disassemblers to provide better disassembly, particularly on targets like ARM Thumb that like to intermingle data in the TEXT segment. 2011-10-04 23:26:17 +00:00
MCAsmInfoDarwin.cpp Teach our Dwarf emission to use the string pool. 2011-10-27 06:44:11 +00:00
MCAsmStreamer.cpp Add support for a new extension to the .file directive: 2011-10-17 23:05:28 +00:00
MCAssembler.cpp Trailing whitespace. 2011-10-26 22:44:41 +00:00
MCAtom.cpp MCAtom extending methods need to extend the range of the atom as well. 2011-10-10 18:09:38 +00:00
MCCodeEmitter.cpp
MCCodeGenInfo.cpp - Move CodeModel from a TargetMachine global option to MCCodeGenInfo. 2011-07-20 07:51:56 +00:00
MCContext.cpp Fixed a bug in the code to create a dwarf file and directory table entires when 2011-11-01 23:39:05 +00:00
MCDisassembler.cpp
MCDwarf.cpp As a first step, emit both the compact unwind and CIE/FDEs for a function. 2011-09-06 18:37:11 +00:00
MCELF.cpp Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to createMCAsmBackend. 2011-07-25 23:24:55 +00:00
MCELF.h Make all static functions become static class methods. Move shared (duplicated) functions to new MCELF class. 2011-02-28 21:45:04 +00:00
MCELFObjectTargetWriter.cpp
MCELFStreamer.cpp This is the first of several patches for Mips direct object generation. 2011-10-25 18:13:20 +00:00
MCELFStreamer.h Don't drop alignment info on local common symbols. 2011-09-01 23:04:27 +00:00
MCExpr.cpp This is the first of several patches for Mips direct object generation. 2011-10-25 18:13:20 +00:00
MCInst.cpp Don't attach annotations to MCInst's. Instead, have the disassembler return, and the printer accept, an annotation string which can be passed through if the client cares about annotations. 2011-09-15 23:38:46 +00:00
MCInstPrinter.cpp Adding back support for printing operands symbolically to ARM's new disassembler 2011-10-04 22:44:48 +00:00
MCInstrAnalysis.cpp MCInstrAnalysis: Don't crash on instructions with no operands. 2011-09-19 17:56:00 +00:00
MCLabel.cpp
MCLoggingStreamer.cpp Add support for a new extension to the .file directive: 2011-10-17 23:05:28 +00:00
MCMachObjectTargetWriter.cpp
MCMachOStreamer.cpp Don't drop alignment info on local common symbols. 2011-09-01 23:04:27 +00:00
MCModule.cpp Start stubbing out MCModule and MCAtom, which provide an API for accessing the rich disassembly of a complete object or executable. 2011-09-22 22:32:22 +00:00
MCNullStreamer.cpp Add support for a new extension to the .file directive: 2011-10-17 23:05:28 +00:00
MCObjectFileInfo.cpp On an ELF system, ".debug_str" is mergeable and contains null terminated strings 2011-10-26 18:44:32 +00:00
MCObjectStreamer.cpp Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to createMCAsmBackend. 2011-07-25 23:24:55 +00:00
MCObjectWriter.cpp Gas is very inconsistent about when a relaxation/relocation is needed. Do 2011-02-16 03:25:55 +00:00
MCPureStreamer.cpp Add support for a new extension to the .file directive: 2011-10-17 23:05:28 +00:00
MCSection.cpp
MCSectionCOFF.cpp
MCSectionELF.cpp Be nice to Xcore and the XMOS assembler and avoid quoting section names 2011-03-04 20:03:14 +00:00
MCSectionMachO.cpp Reapply 127939 since Daniel fixed the breakage. <rdar://problem/9012638> 2011-03-19 02:42:31 +00:00
MCStreamer.cpp Add support for a new extension to the .file directive: 2011-10-17 23:05:28 +00:00
MCSubtargetInfo.cpp - Eliminate MCCodeEmitter's dependency on TargetMachine. It now uses MCInstrInfo 2011-07-11 03:57:24 +00:00
MCSymbol.cpp MC: Change variable symbols to be recognized as defined, by assigning their sections based on FindAssociatedSection(). 2011-04-29 18:20:17 +00:00
MCTargetAsmLexer.cpp Rename TargetAsmParser to MCTargetAsmParser and TargetAsmLexer to MCTargetAsmLexer; rename createAsmLexer to createMCAsmLexer and createAsmParser to createMCAsmParser. 2011-07-26 00:24:13 +00:00
MCValue.cpp
MCWin64EH.cpp Add MCObjectFileInfo and sink the MCSections initialization code from 2011-07-20 05:58:47 +00:00
SubtargetFeature.cpp Let printf do the formatting instead aligning strings ourselves. 2011-10-16 16:30:34 +00:00
WinCOFFObjectWriter.cpp Refactor X86 target to separate MC code from Target code. 2011-07-25 18:43:53 +00:00
WinCOFFStreamer.cpp Don't drop alignment info on local common symbols. 2011-09-01 23:04:27 +00:00