From: George Kyriazis Date: Tue, 13 Feb 2018 18:53:39 +0000 (-0600) Subject: swr/rast: Normalize path for debug metadata X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7dd793d10c8e6bc94db6a7325430503b3372862d;p=mesa.git swr/rast: Normalize path for debug metadata in template gen_llvm.hpp Reviewed-by: Bruce Cherniak --- diff --git a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_llvm.hpp b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_llvm.hpp index 9db6c61b988..d61194dae11 100644 --- a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_llvm.hpp +++ b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_llvm.hpp @@ -57,7 +57,7 @@ namespace SwrJit // Compute debug metadata llvm::DIBuilder builder(*pJitMgr->mpCurrentModule); - llvm::DIFile* pFile = builder.createFile("${input_file}", "${input_dir}"); + llvm::DIFile* pFile = builder.createFile("${input_file}", "${os.path.normpath(input_dir).replace('\\', '/')}"); std::vector> dbgMembers; %for member in type['members']: @@ -79,6 +79,7 @@ namespace SwrJit } // ns SwrJit <%! # Global function definitions + import os def calc_max_len(fields): max_type_len = 0 max_name_len = 0