]> granicus.if.org Git - llvm/commit
[Remarks] Emit a section containing remark diagnostics metadata
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Wed, 27 Mar 2019 01:13:59 +0000 (01:13 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Wed, 27 Mar 2019 01:13:59 +0000 (01:13 +0000)
commit0c810b46bd8d134317871c660128c63d4da899ff
treea76c40f824f7213c3129eacfd44f7371bb8356f5
parent7b016165658561a2ec5bdffea134fe50cc9bcf7a
[Remarks] Emit a section containing remark diagnostics metadata

A section containing metadata on remark diagnostics will be emitted if
the flag (-mllvm) -remarks-section is present.

For now, the metadata is:

* a magic number for remarks: "REMARKS\0"
* the version number: a little-endian uint64_t
* the absolute file path to the serialized remark diagnostics: a
  null-terminated string.

Differential Revision: https://reviews.llvm.org/D59571

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357043 91177308-0d34-0410-b5e6-96231b3b80d8
docs/CodeGenerator.rst
docs/CommandGuide/llc.rst
include/llvm/CodeGen/AsmPrinter.h
include/llvm/MC/MCObjectFileInfo.h
include/llvm/Remarks/Remark.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/MC/MCObjectFileInfo.cpp
test/CodeGen/X86/remarks-section.ll [new file with mode: 0644]