This is a patch to move code from tools/clang/lib/Driver/MSVCToolChain.cpp
to LLVM, so that we can use this functionality in LLD as well.
Details
Details
- Reviewers
rnk
Diff Detail
Diff Detail
Event Timeline
lib/Support/MSVC.cpp | ||
---|---|---|
29–31 | Can this be fixed now that we are sinking the code into LLVM? |
Comment Actions
Can you move the win32 specific stuff into lib/Support/Windows/MSVC.inc? The Unix stub side can stay in MSVC.cpp, it's small enough it doesn't need to be pulled out.
See this comment in llvm/lib/Support/Windows/WindowsSupport.h:
// This file defines things specific to Windows implementations. In addition to // providing some helpers for working with win32 APIs, this header wraps // <windows.h> with some portability macros. Always include WindowsSupport.h // instead of including <windows.h> directly.
lib/Support/MSVC.cpp | ||
---|---|---|
29–31 | I'd fix it separately and keep this as a simple code motion. getSystemRegistryString needs to be rewritten anyway. |
Comment Actions
Please note, I've made additional changes to the original code to support Windows 10 SDK, see D12832.
This is still an issue?