@@ -24,17 +24,17 @@ using namespace llvm;
24
24
namespace {
25
25
class TestDialectVersionParser : public cl ::parser<test::TestDialectVersion> {
26
26
public:
27
- TestDialectVersionParser (cl::Option &O )
28
- : cl::parser<test::TestDialectVersion>(O ) {}
27
+ TestDialectVersionParser (cl::Option &o )
28
+ : cl::parser<test::TestDialectVersion>(o ) {}
29
29
30
- bool parse (cl::Option &O , StringRef /* argName*/ , StringRef arg,
30
+ bool parse (cl::Option &o , StringRef /* argName*/ , StringRef arg,
31
31
test::TestDialectVersion &v) {
32
- long long major_, minor_ ;
33
- if (getAsSignedInteger (arg.split (" ." ).first , 10 , major_ ))
34
- return O .error (" Invalid argument '" + arg);
35
- if (getAsSignedInteger (arg.split (" ." ).second , 10 , minor_ ))
36
- return O .error (" Invalid argument '" + arg);
37
- v = test::TestDialectVersion (major_, minor_ );
32
+ long long major, minor ;
33
+ if (getAsSignedInteger (arg.split (" ." ).first , 10 , major ))
34
+ return o .error (" Invalid argument '" + arg);
35
+ if (getAsSignedInteger (arg.split (" ." ).second , 10 , minor ))
36
+ return o .error (" Invalid argument '" + arg);
37
+ v = test::TestDialectVersion (major, minor );
38
38
// Returns true on error.
39
39
return false ;
40
40
}
@@ -182,12 +182,12 @@ struct TestBytecodeRoundtripPass
182
182
if (failed (reader.readVarInt (encoding)) || encoding != 999 )
183
183
return success ();
184
184
llvm::outs () << " Overriding parsing of IntegerType encoding...\n " ;
185
- uint64_t _widthAndSignedness , width;
185
+ uint64_t widthAndSignedness , width;
186
186
IntegerType::SignednessSemantics signedness;
187
- if (succeeded (reader.readVarInt (_widthAndSignedness )) &&
188
- ((width = _widthAndSignedness >> 2 ), true ) &&
187
+ if (succeeded (reader.readVarInt (widthAndSignedness )) &&
188
+ ((width = widthAndSignedness >> 2 ), true ) &&
189
189
((signedness = static_cast <IntegerType::SignednessSemantics>(
190
- _widthAndSignedness & 0x3 )),
190
+ widthAndSignedness & 0x3 )),
191
191
true ))
192
192
entry = IntegerType::get (reader.getContext (), width, signedness);
193
193
// Return nullopt to fall through the rest of the parsing code path.
0 commit comments