[PATCH] D91897: [llvm-profgen][NFC]Fix build failure on different platform

Lei Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 20 15:29:15 PST 2020


wlei created this revision.
Herald added subscribers: llvm-commits, wenlei, lxfind, mgorny.
Herald added a project: LLVM.
wlei requested review of this revision.

Test Plan:


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91897

Files:
  llvm/docs/CommandGuide/llvm-profgen.rst
  llvm/tools/llvm-profgen/CMakeLists.txt
  llvm/tools/llvm-profgen/PerfReader.h
  llvm/tools/llvm-profgen/ProfiledBinary.cpp


Index: llvm/tools/llvm-profgen/ProfiledBinary.cpp
===================================================================
--- llvm/tools/llvm-profgen/ProfiledBinary.cpp
+++ llvm/tools/llvm-profgen/ProfiledBinary.cpp
@@ -8,14 +8,12 @@
 
 #include "ProfiledBinary.h"
 #include "ErrorHandling.h"
-#include "MCTargetDesc/X86MCTargetDesc.h"
 #include "llvm/ADT/Triple.h"
 #include "llvm/Demangle/Demangle.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Format.h"
 #include "llvm/Support/TargetRegistry.h"
 #include "llvm/Support/TargetSelect.h"
-#include "llvm/Support/X86TargetParser.h"
 
 #define DEBUG_TYPE "load-binary"
 
Index: llvm/tools/llvm-profgen/PerfReader.h
===================================================================
--- llvm/tools/llvm-profgen/PerfReader.h
+++ llvm/tools/llvm-profgen/PerfReader.h
@@ -69,7 +69,7 @@
 
   // The parsed MMap event
   struct MMapEvent {
-    pid_t PID = 0;
+    uint64_t PID = 0;
     uint64_t BaseAddress = 0;
     uint64_t Size = 0;
     uint64_t Offset = 0;
Index: llvm/tools/llvm-profgen/CMakeLists.txt
===================================================================
--- llvm/tools/llvm-profgen/CMakeLists.txt
+++ llvm/tools/llvm-profgen/CMakeLists.txt
@@ -1,7 +1,4 @@
-include_directories(
-  ${LLVM_MAIN_SRC_DIR}/lib/Target/X86
-  ${LLVM_BINARY_DIR}/lib/Target/X86
-  )
+
 set(LLVM_LINK_COMPONENTS
   AllTargetsDescs
   AllTargetsDisassemblers
Index: llvm/docs/CommandGuide/llvm-profgen.rst
===================================================================
--- llvm/docs/CommandGuide/llvm-profgen.rst
+++ llvm/docs/CommandGuide/llvm-profgen.rst
@@ -1,5 +1,5 @@
 llvm-profgen - LLVM SPGO profile generation tool
-=================================
+=================================================
 
 .. program:: llvm-profgen
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91897.306793.patch
Type: text/x-patch
Size: 1802 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201120/d2bfb5a0/attachment.bin>


More information about the llvm-commits mailing list