From 7dd793d10c8e6bc94db6a7325430503b3372862d Mon Sep 17 00:00:00 2001 From: George Kyriazis Date: Tue, 13 Feb 2018 12:53:39 -0600 Subject: [PATCH] swr/rast: Normalize path for debug metadata in template gen_llvm.hpp Reviewed-by: Bruce Cherniak --- .../drivers/swr/rasterizer/codegen/templates/gen_llvm.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.30.2