[flang-commits] [flang] [flang] Remove hardcoded bits from AddDebugInfo. (PR #89231)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Sun Apr 21 08:57:25 PDT 2024


================
@@ -52,21 +55,40 @@ void AddDebugInfoPass::runOnOperation() {
   mlir::ModuleOp module = getOperation();
   mlir::MLIRContext *context = &getContext();
   mlir::OpBuilder builder(context);
-  std::string inputFilePath("-");
-  if (auto fileLoc = module.getLoc().dyn_cast<mlir::FileLineColLoc>())
-    inputFilePath = fileLoc.getFilename().getValue();
+  llvm::StringRef fileName;
+  std::string filePath;
----------------
tblah wrote:

Does DWARF support paths with wide characters? 

https://github.com/llvm/llvm-project/pull/89231


More information about the flang-commits mailing list