From 5d40a42e2f09c49c9a697f08160e4bc8221ae321 Mon Sep 17 00:00:00 2001 From: nihuini Date: Tue, 22 Dec 2020 19:34:49 +0800 Subject: [PATCH] shorter blob name --- tools/mlir/mlir2ncnn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mlir/mlir2ncnn.cpp b/tools/mlir/mlir2ncnn.cpp index f2f38e33d..f43a3b154 100644 --- a/tools/mlir/mlir2ncnn.cpp +++ b/tools/mlir/mlir2ncnn.cpp @@ -33,14 +33,14 @@ static std::string get_mlir_value_uniq_id(const mlir::Value& value) { mlir::FileLineColLoc floc = value.getLoc().cast(); - return floc.getFilename().str() + ":" + std::to_string(floc.getLine()) + ":" + std::to_string(floc.getColumn()); + return std::to_string(floc.getLine()) + ":" + std::to_string(floc.getColumn()); } if (value.getLoc().isa()) { mlir::FileLineColLoc floc = value.getLoc().cast().getLocations().front().cast(); - return floc.getFilename().str() + ":" + std::to_string(floc.getLine()) + ":" + std::to_string(floc.getColumn()); + return std::to_string(floc.getLine()) + ":" + std::to_string(floc.getColumn()); } fprintf(stderr, "unhandled get_mlir_value_uniq_id\n");