diff options
author | George Kyriazis <[email protected]> | 2018-02-13 12:53:39 -0600 |
---|---|---|
committer | George Kyriazis <[email protected]> | 2018-02-16 10:54:02 -0600 |
commit | 7dd793d10c8e6bc94db6a7325430503b3372862d (patch) | |
tree | b505d74416b598d307f57f6e30b05fb172234a60 /src/gallium | |
parent | f979d0bc2f5646275994f71b737f6828f8d2539c (diff) |
swr/rast: Normalize path for debug metadata
in template gen_llvm.hpp
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/codegen/templates/gen_llvm.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<std::pair<std::string, uint32_t>> 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 |