diff --git a/llvm/tools/llvm-profgen/llvm-profgen.cpp b/llvm/tools/llvm-profgen/llvm-profgen.cpp --- a/llvm/tools/llvm-profgen/llvm-profgen.cpp +++ b/llvm/tools/llvm-profgen/llvm-profgen.cpp @@ -35,13 +35,13 @@ int main(int argc, const char *argv[]) { InitLLVM X(argc, argv); - cl::ParseCommandLineOptions(argc, argv, "llvm SPGO profile generator\n"); - // Initialize targets and assembly printers/parsers. InitializeAllTargetInfos(); InitializeAllTargetMCs(); InitializeAllDisassemblers(); + cl::ParseCommandLineOptions(argc, argv, "llvm SPGO profile generator\n"); + // Load binaries and parse perf events and samples PerfReader Reader(BinaryFilenames); Reader.parsePerfTraces(PerfTraceFilenames);