Skip to content

Commit

Permalink
swr/rast: Normalize path for debug metadata
Browse files Browse the repository at this point in the history
in template gen_llvm.hpp

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
  • Loading branch information
gkyriazis committed Feb 16, 2018
1 parent f979d0b commit 7dd793d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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']:
Expand All @@ -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
Expand Down

0 comments on commit 7dd793d

Please sign in to comment.