Skip to content

Commit 76a5ff1

Browse files
committed
Change option name to -memprof-print-function-guids
1 parent 7f06318 commit 76a5ff1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/lib/Transforms/Instrumentation/MemProfUse.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static cl::opt<bool>
6363
cl::Hidden, cl::init(false));
6464

6565
static cl::opt<bool>
66-
PrintFunctionGuids("memprof-function-guids",
66+
PrintFunctionGuids("memprof-print-function-guids",
6767
cl::desc("Print function GUIDs computed for matching"),
6868
cl::Hidden, cl::init(false));
6969

llvm/test/Transforms/PGOProfile/memprof-dump-matched-alloc-site.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
; REQUIRES: x86_64-linux
2727
; RUN: split-file %s %t
2828
; RUN: llvm-profdata merge %t/memprof-dump-matched-alloc-site.yaml -o %t/memprof-dump-matched-alloc-site.memprofdata
29-
; RUN: opt < %t/memprof-dump-matched-alloc-site.ll -passes='memprof-use<profile-filename=%t/memprof-dump-matched-alloc-site.memprofdata>' -memprof-print-match-info -memprof-function-guids -S 2>&1 | FileCheck %s
29+
; RUN: opt < %t/memprof-dump-matched-alloc-site.ll -passes='memprof-use<profile-filename=%t/memprof-dump-matched-alloc-site.memprofdata>' -memprof-print-match-info -memprof-print-function-guids -S 2>&1 | FileCheck %s
3030

3131
;--- memprof-dump-matched-alloc-site.yaml
3232
---
@@ -78,7 +78,7 @@ HeapProfileRecords:
7878
...
7979
;--- memprof-dump-matched-alloc-site.ll
8080

81-
;; From -memprof-function-guids
81+
;; From -memprof-print-function-guids
8282
; CHECK: MemProf: Function GUID 4708092051066754107 is _Z2f1v
8383
; CHECK: MemProf: Function GUID 14255129117669598641 is _Z2f2v
8484
; CHECK: MemProf: Function GUID 2771528421763978342 is _Z2f3v

0 commit comments

Comments
 (0)