1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/tools/llvm-readobj
Reid Kleckner 7cc33b4fa4 [CodeView] Use assembler directives for line tables
Adds a new family of .cv_* directives to LLVM's variant of GAS syntax:

- .cv_file: Similar to DWARF .file directives

- .cv_loc: Similar to the DWARF .loc directive, but starts with a
  function id. CodeView line tables are emitted by function instead of
  by compilation unit, so we needed an extra field to communicate this.
  Rather than overloading the .loc direction further, we decided it was
  better to have our own directive.

- .cv_stringtable: Emits the codeview string table at the current
  position. Currently this just contains the filenames as
  null-terminated strings.

- .cv_filechecksums: Emits the file checksum table for all files used
  with .cv_file so far. There is currently no support for emitting
  actual checksums, just filenames.

This moves the line table emission code down into the assembler.  This
is in preparation for implementing the inlined call site line table
format. The inline line table format encoding algorithm requires knowing
the absolute code offsets, so it must run after the assembler has laid
out the code.

David Majnemer collaborated on this patch.

llvm-svn: 259117
2016-01-28 23:31:52 +00:00
..
ARMAttributeParser.cpp [ARM] Add DSP build attribute and extension targeting 2016-01-25 11:26:11 +00:00
ARMAttributeParser.h [ARM] Add DSP build attribute and extension targeting 2016-01-25 11:26:11 +00:00
ARMEHABIPrinter.h One more batch of self-containing headers. 2016-01-27 19:29:56 +00:00
ARMWinEHPrinter.cpp
ARMWinEHPrinter.h
CMakeLists.txt
CodeView.h [codeview] Share more enums across the writer and the dumper 2016-01-13 23:44:57 +00:00
COFFDumper.cpp [CodeView] Use assembler directives for line tables 2016-01-28 23:31:52 +00:00
COFFImportDumper.cpp
ELFDumper.cpp Remove superfluous call to std::to_string that's breaking the cygwin build. 2016-01-27 13:22:39 +00:00
Error.cpp
Error.h
llvm-readobj.cpp [llvm-readobj] Add -elf-section-groups option 2016-01-26 19:46:39 +00:00
llvm-readobj.h [readobj] Expand CodeView dumping functionality 2016-01-13 19:32:35 +00:00
LLVMBuild.txt
MachODumper.cpp
ObjDumper.cpp
ObjDumper.h [llvm-readobj] Add -elf-section-groups option 2016-01-26 19:46:39 +00:00
StackMapPrinter.h
StreamWriter.cpp
StreamWriter.h [codeview] Print relocations against code and data offset fields 2016-01-14 17:51:54 +00:00
Win64EHDumper.cpp
Win64EHDumper.h