Skip to content

Commit d8f2812

Browse files
committed
clang format on previously changed files
Signed-off-by: Paramvir Sran <[email protected]>
1 parent fff854f commit d8f2812

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Compiler/CompilerOptions.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ extern std::vector<std::string> extraLibs; // onnx-mlir only
125125
extern ProfileIRs profileIR; // onnx-mlir only
126126
extern OptReport optReport; // onnx-mlir only
127127
extern bool useOldBufferization; // onnx-mlir only
128-
extern bool enableTiming; // onnx-mlir only
128+
extern bool enableTiming; // onnx-mlir only
129129
extern bool split_input_file; // onnx-mlir-opt only
130130
extern bool verify_diagnostics; // onnx-mlir-opt only
131131
extern bool verify_passes; // onnx-mlir-opt only

src/Compiler/CompilerUtils.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ int Command::exec(std::string wdir) const {
152152
llvm::errs() << llvm::join(argsRef, " ") << "\n"
153153
<< "Error message: " << errMsg << "\n"
154154
<< "Program path: " << _path << "\n"
155-
<< "Command execution failed."
156-
<< "\n";
155+
<< "Command execution failed." << "\n";
157156
return rc;
158157
}
159158

@@ -427,7 +426,8 @@ static int genModelObject(
427426
// Return 0 on success, error code on failure.
428427
static int genJniObject(const mlir::OwningOpRef<ModuleOp> &module,
429428
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");
431431
Command ar(/*exePath=*/getToolPath("ar", true));
432432
int rc = ar.appendStr("x")
433433
// old version of ar does not support --output so comment out
@@ -446,7 +446,8 @@ static int genJniObject(const mlir::OwningOpRef<ModuleOp> &module,
446446
static int genSharedLib(std::string sharedLibNameWithExt,
447447
std::vector<std::string> opts, std::vector<std::string> objs,
448448
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");
450451
#ifdef _WIN32
451452
std::vector<std::string> outputOpt = {"/Fe:" + sharedLibNameWithExt};
452453
// link has to be before libpath since they need to be passed through to the
@@ -579,8 +580,7 @@ static int compileModuleToJniJar(
579580
#define NOEXECSTACK \
580581
{}
581582
#else
582-
#define NOEXECSTACK \
583-
{ "-z", "noexecstack" }
583+
#define NOEXECSTACK {"-z", "noexecstack"}
584584
#endif
585585
std::string modelSharedLibPath = getTargetFilename(jniLibBase, EmitLib);
586586
rc = genSharedLib(modelSharedLibPath, NOEXECSTACK,

0 commit comments

Comments
 (0)