[PATCH] D93348: llvm-profgen: Parse command line arguments after initializing targets
Tom Stellard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 21 15:13:45 PST 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4ad0cfd4de41: llvm-profgen: Parse command line arguments after initializing targets (authored by tstellar).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93348/new/
https://reviews.llvm.org/D93348
Files:
llvm/tools/llvm-profgen/llvm-profgen.cpp
Index: llvm/tools/llvm-profgen/llvm-profgen.cpp
===================================================================
--- llvm/tools/llvm-profgen/llvm-profgen.cpp
+++ 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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93348.313204.patch
Type: text/x-patch
Size: 746 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201221/841d2fb5/attachment.bin>
More information about the llvm-commits
mailing list