-
Notifications
You must be signed in to change notification settings - Fork 694
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tools] add -help option for opt. (#7002)
Add -help option to opt in opt.cpp. The -help option for opt in clean llvm3.7 was disabled with [disable -help](d5bb308#diff-1c7e1b16bc72f52ebd811ef2a24aa91fc4df0f9b47c279b75d0bbb0ae1684d0aR1719) Fixes #5514
- Loading branch information
1 parent
ee98b2e
commit 72b353a
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
; RUN: opt -help | FileCheck %s | ||
|
||
; Make sure the help message is printed. | ||
; CHECK: -O1 | ||
; CHECK-SAME: - Optimization level 1. Similar to clang -O1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters