@@ -185,7 +185,11 @@ void CommandLineInterface::handleBinary(string const& _contract)
185
185
186
186
void CommandLineInterface::handleOpcode (string const & _contract)
187
187
{
188
- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
188
+ solAssert (
189
+ m_options.input .mode == InputMode::Compiler ||
190
+ m_options.input .mode == InputMode::CompilerWithASTImport ||
191
+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport , " "
192
+ );
189
193
190
194
if (!m_options.output .dir .empty ())
191
195
createFile (m_compiler->filesystemFriendlyName (_contract) + " .opcode" , evmasm::disassemble (m_compiler->object (_contract).bytecode ));
@@ -199,7 +203,11 @@ void CommandLineInterface::handleOpcode(string const& _contract)
199
203
200
204
void CommandLineInterface::handleIR (string const & _contractName)
201
205
{
202
- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
206
+ solAssert (
207
+ m_options.input .mode == InputMode::Compiler ||
208
+ m_options.input .mode == InputMode::CompilerWithASTImport ||
209
+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport , " "
210
+ );
203
211
204
212
if (!m_options.compiler .outputs .ir )
205
213
return ;
@@ -215,7 +223,11 @@ void CommandLineInterface::handleIR(string const& _contractName)
215
223
216
224
void CommandLineInterface::handleIROptimized (string const & _contractName)
217
225
{
218
- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
226
+ solAssert (
227
+ m_options.input .mode == InputMode::Compiler ||
228
+ m_options.input .mode == InputMode::CompilerWithASTImport ||
229
+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport , " "
230
+ );
219
231
220
232
if (!m_options.compiler .outputs .irOptimized )
221
233
return ;
@@ -231,7 +243,11 @@ void CommandLineInterface::handleIROptimized(string const& _contractName)
231
243
232
244
void CommandLineInterface::handleEwasm (string const & _contractName)
233
245
{
234
- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
246
+ solAssert (
247
+ m_options.input .mode == InputMode::Compiler ||
248
+ m_options.input .mode == InputMode::CompilerWithASTImport ||
249
+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport , " "
250
+ );
235
251
236
252
if (!m_options.compiler .outputs .ewasm )
237
253
return ;
@@ -268,7 +284,11 @@ void CommandLineInterface::handleBytecode(string const& _contract)
268
284
269
285
void CommandLineInterface::handleSignatureHashes (string const & _contract)
270
286
{
271
- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
287
+ solAssert (
288
+ m_options.input .mode == InputMode::Compiler ||
289
+ m_options.input .mode == InputMode::CompilerWithASTImport ||
290
+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport , " "
291
+ );
272
292
273
293
if (!m_options.compiler .outputs .signatureHashes )
274
294
return ;
@@ -286,7 +306,11 @@ void CommandLineInterface::handleSignatureHashes(string const& _contract)
286
306
287
307
void CommandLineInterface::handleMetadata (string const & _contract)
288
308
{
289
- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
309
+ solAssert (
310
+ m_options.input .mode == InputMode::Compiler ||
311
+ m_options.input .mode == InputMode::CompilerWithASTImport ||
312
+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport , " "
313
+ );
290
314
291
315
if (!m_options.compiler .outputs .metadata )
292
316
return ;
@@ -300,7 +324,11 @@ void CommandLineInterface::handleMetadata(string const& _contract)
300
324
301
325
void CommandLineInterface::handleABI (string const & _contract)
302
326
{
303
- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
327
+ solAssert (
328
+ m_options.input .mode == InputMode::Compiler ||
329
+ m_options.input .mode == InputMode::CompilerWithASTImport ||
330
+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport , " "
331
+ );
304
332
305
333
if (!m_options.compiler .outputs .abi )
306
334
return ;
@@ -314,7 +342,11 @@ void CommandLineInterface::handleABI(string const& _contract)
314
342
315
343
void CommandLineInterface::handleStorageLayout (string const & _contract)
316
344
{
317
- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
345
+ solAssert (
346
+ m_options.input .mode == InputMode::Compiler ||
347
+ m_options.input .mode == InputMode::CompilerWithASTImport ||
348
+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport , " "
349
+ );
318
350
319
351
if (!m_options.compiler .outputs .storageLayout )
320
352
return ;
@@ -328,7 +360,11 @@ void CommandLineInterface::handleStorageLayout(string const& _contract)
328
360
329
361
void CommandLineInterface::handleNatspec (bool _natspecDev, string const & _contract)
330
362
{
331
- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
363
+ solAssert (
364
+ m_options.input .mode == InputMode::Compiler ||
365
+ m_options.input .mode == InputMode::CompilerWithASTImport ||
366
+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport , " "
367
+ );
332
368
333
369
bool enabled = false ;
334
370
std::string suffix;
0 commit comments