Skip to content

Commit

Permalink
Add enum values to CodeGenOpt::Level
Browse files Browse the repository at this point in the history
The absolute values of this enum are important at least in that
they get printed by SelectionDAGISel. e.g:
  `Before: -O2 ; After: -O0`

Differential Revision: https://reviews.llvm.org/D57430

llvm-svn: 352587
  • Loading branch information
sbc100 committed Jan 30, 2019
1 parent 1a1418b commit fc37198
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions llvm/include/llvm/Support/CodeGen.h
Expand Up @@ -49,10 +49,10 @@ namespace llvm {
// Code generation optimization level.
namespace CodeGenOpt {
enum Level {
None, // -O0
Less, // -O1
Default, // -O2, -Os
Aggressive // -O3
None = 0, // -O0
Less = 1, // -O1
Default = 2, // -O2, -Os
Aggressive = 3 // -O3
};
}

Expand Down

0 comments on commit fc37198

Please sign in to comment.