[PATCH] D24317: Emit S_COMPILE3 CodeView record
Adrian McCarthy via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 7 14:29:36 PDT 2016
amccarth created this revision.
amccarth added a reviewer: rnk.
amccarth added a subscriber: llvm-commits.
CodeView has an S_COMPILE3 record to identify the compiler and source language of the compiland.
This record comes first in the debug$S section for the compiland. The debuggers rely on this record to know the source language of the code.
I'm not thrilled about how this infers the CPUType and how it has to parse the compiler version from the producer string in the DICompileUnit. If you know of a better way to get at this information, I'd be happy to improve this patch.
https://reviews.llvm.org/D24317
Files:
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
lib/CodeGen/AsmPrinter/CodeViewDebug.h
test/MC/COFF/cv-compiler-info.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24317.70599.patch
Type: text/x-patch
Size: 9210 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160907/3da23493/attachment.bin>
More information about the llvm-commits
mailing list