diff --git a/llvm/tools/llvm-readobj/llvm-readobj.cpp b/llvm/tools/llvm-readobj/llvm-readobj.cpp --- a/llvm/tools/llvm-readobj/llvm-readobj.cpp +++ b/llvm/tools/llvm-readobj/llvm-readobj.cpp @@ -345,8 +345,11 @@ cl::desc("Alias for --elf-hash-histogram"), cl::aliasopt(HashHistogram)); - // --elf-cg-profile - cl::opt CGProfile("elf-cg-profile", cl::desc("Display callgraph profile section")); + // --cg-profile + cl::opt CGProfile("cg-profile", + cl::desc("Display callgraph profile section")); + cl::alias ELFCGProfile("elf-cg-profile", cl::desc("Alias for --cg-profile"), + cl::aliasopt(CGProfile)); // -addrsig cl::opt Addrsig("addrsig",