[PATCH] D31939: [ProfileData] Support coverage for PE binaries

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 11 09:04:18 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL299953: [Profile] PE binary coverage bug fix (authored by davidxl).

Changed prior to commit:
  https://reviews.llvm.org/D31939?vs=94827&id=94839#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D31939

Files:
  llvm/trunk/include/llvm/ProfileData/InstrProfData.inc


Index: llvm/trunk/include/llvm/ProfileData/InstrProfData.inc
===================================================================
--- llvm/trunk/include/llvm/ProfileData/InstrProfData.inc
+++ llvm/trunk/include/llvm/ProfileData/InstrProfData.inc
@@ -622,6 +622,19 @@
  * specified via command line. */
 #define INSTR_PROF_PROFILE_NAME_VAR __llvm_profile_filename
 
+#ifdef _WIN32
+/* Runtime section names and name strings.  */
+#define INSTR_PROF_DATA_SECT_NAME .lprfd
+#define INSTR_PROF_NAME_SECT_NAME .lprfn
+#define INSTR_PROF_CNTS_SECT_NAME .lprfc
+/* Array of pointers. Each pointer points to a list
+ * of value nodes associated with one value site.
+ */
+#define INSTR_PROF_VALS_SECT_NAME .lprfv
+/* Value profile nodes section. */
+#define INSTR_PROF_VNODES_SECT_NAME .lprfnd
+#define INSTR_PROF_COVMAP_SECT_NAME .lcovmap
+#else
 /* Runtime section names and name strings.  */
 #define INSTR_PROF_DATA_SECT_NAME __llvm_prf_data
 #define INSTR_PROF_NAME_SECT_NAME __llvm_prf_names
@@ -633,6 +646,7 @@
 /* Value profile nodes section. */
 #define INSTR_PROF_VNODES_SECT_NAME __llvm_prf_vnds
 #define INSTR_PROF_COVMAP_SECT_NAME __llvm_covmap
+#endif
 
 #define INSTR_PROF_DATA_SECT_NAME_STR                                          \
   INSTR_PROF_QUOTE(INSTR_PROF_DATA_SECT_NAME)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31939.94839.patch
Type: text/x-patch
Size: 1288 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170411/730da261/attachment.bin>


More information about the llvm-commits mailing list