Skip to content

Commit

Permalink
Merge pull request #2895 from kinke/diNamespaces
Browse files Browse the repository at this point in the history
Add DI namespaces & use them for templates and C++ namespaces
  • Loading branch information
kinke committed Nov 9, 2018
2 parents 7bcd6d3 + 71dfc4a commit 9537185
Show file tree
Hide file tree
Showing 4 changed files with 450 additions and 321 deletions.
4 changes: 3 additions & 1 deletion driver/linker-msvc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ int linkObjToBinaryMSVC(llvm::StringRef outputPath,
args.push_back("/OPT:NOREF");
} else {
args.push_back("/OPT:REF");
args.push_back("/OPT:ICF");
// don't fold identical COMDATs (e.g., functions) if debuginfos are enabled,
// otherwise breakpoints may not be hit
args.push_back(global.params.symdebug ? "/OPT:NOICF" : "/OPT:ICF");
}

// add C runtime libs
Expand Down
Loading

0 comments on commit 9537185

Please sign in to comment.