llvm/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
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
MachObjectWriter.cpp
Makefile
MCAsmBackend.cpp
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
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
MCELF.cpp
MCELF.h
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
MCExpr.cpp This is the first of several patches for Mips direct object generation. 2011-10-25 18:13:20 +00:00
MCInst.cpp
MCInstPrinter.cpp
MCInstrAnalysis.cpp
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
MCModule.cpp
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
MCObjectWriter.cpp
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
MCSectionMachO.cpp
MCStreamer.cpp Add support for a new extension to the .file directive: 2011-10-17 23:05:28 +00:00
MCSubtargetInfo.cpp
MCSymbol.cpp
MCTargetAsmLexer.cpp
MCValue.cpp
MCWin64EH.cpp
SubtargetFeature.cpp Let printf do the formatting instead aligning strings ourselves. 2011-10-16 16:30:34 +00:00
WinCOFFObjectWriter.cpp
WinCOFFStreamer.cpp