@@ -152,8 +152,7 @@ int Command::exec(std::string wdir) const {
152
152
llvm::errs () << llvm::join (argsRef, " " ) << " \n "
153
153
<< " Error message: " << errMsg << " \n "
154
154
<< " Program path: " << _path << " \n "
155
- << " Command execution failed."
156
- << " \n " ;
155
+ << " Command execution failed." << " \n " ;
157
156
return rc;
158
157
}
159
158
@@ -427,7 +426,8 @@ static int genModelObject(
427
426
// Return 0 on success, error code on failure.
428
427
static int genJniObject (const mlir::OwningOpRef<ModuleOp> &module,
429
428
std::string jniSharedLibPath, std::string jniObjPath) {
430
- auto jniTiming = rootTimingScope.nest (" [onnx-mlir] Compiling JNI Object File" );
429
+ auto jniTiming =
430
+ rootTimingScope.nest (" [onnx-mlir] Compiling JNI Object File" );
431
431
Command ar (/* exePath=*/ getToolPath (" ar" , true ));
432
432
int rc = ar.appendStr (" x" )
433
433
// old version of ar does not support --output so comment out
@@ -446,7 +446,8 @@ static int genJniObject(const mlir::OwningOpRef<ModuleOp> &module,
446
446
static int genSharedLib (std::string sharedLibNameWithExt,
447
447
std::vector<std::string> opts, std::vector<std::string> objs,
448
448
std::vector<std::string> libs, std::vector<std::string> libDirs) {
449
- auto sharedLibTiming = rootTimingScope.nest (" [onnx-mlir] Linking Shared Library" );
449
+ auto sharedLibTiming =
450
+ rootTimingScope.nest (" [onnx-mlir] Linking Shared Library" );
450
451
#ifdef _WIN32
451
452
std::vector<std::string> outputOpt = {" /Fe:" + sharedLibNameWithExt};
452
453
// link has to be before libpath since they need to be passed through to the
@@ -579,8 +580,7 @@ static int compileModuleToJniJar(
579
580
#define NOEXECSTACK \
580
581
{}
581
582
#else
582
- #define NOEXECSTACK \
583
- { " -z" , " noexecstack" }
583
+ #define NOEXECSTACK {" -z" , " noexecstack" }
584
584
#endif
585
585
std::string modelSharedLibPath = getTargetFilename (jniLibBase, EmitLib);
586
586
rc = genSharedLib (modelSharedLibPath, NOEXECSTACK,
0 commit comments