diff --git a/llvm/docs/CommandGuide/llvm-profgen.rst b/llvm/docs/CommandGuide/llvm-profgen.rst --- a/llvm/docs/CommandGuide/llvm-profgen.rst +++ b/llvm/docs/CommandGuide/llvm-profgen.rst @@ -1,5 +1,5 @@ llvm-profgen - LLVM SPGO profile generation tool -================================= +================================================= .. program:: llvm-profgen diff --git a/llvm/tools/llvm-profgen/CMakeLists.txt b/llvm/tools/llvm-profgen/CMakeLists.txt --- a/llvm/tools/llvm-profgen/CMakeLists.txt +++ b/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 diff --git a/llvm/tools/llvm-profgen/PerfReader.h b/llvm/tools/llvm-profgen/PerfReader.h --- a/llvm/tools/llvm-profgen/PerfReader.h +++ b/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; diff --git a/llvm/tools/llvm-profgen/ProfiledBinary.cpp b/llvm/tools/llvm-profgen/ProfiledBinary.cpp --- a/llvm/tools/llvm-profgen/ProfiledBinary.cpp +++ b/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"