Move ResourceClass into llvm/Frontend/HLSL/HLSLResource.h so it could be shared between clang and DirectX backend.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Sema/HLSLExternalSemaSource.cpp | ||
---|---|---|
20 | You need to add FrontendHLSL to the Sema/CMakeLists.txt file too. |
clang/lib/Sema/HLSLExternalSemaSource.cpp | ||
---|---|---|
20 | Good catch. |
clang/lib/Sema/HLSLExternalSemaSource.cpp | ||
---|---|---|
20 | I think the reason it works is that it only used the enum decl in the header, not anything which needs to link. |
clang/lib/Sema/HLSLExternalSemaSource.cpp | ||
---|---|---|
20 | The first header include added to a component should add the linkage dependency (even if it isn't strictly needed). It is too easy to add a linkage dependency later without realizing it isn't already specified. Because of how static archive linking works you don't necessarily notice the missing dependency because many of our tools link both Sema and CodeGen where there is already a dependency. |
Add FrontendHLSL to Sema link
clang/lib/Sema/HLSLExternalSemaSource.cpp | ||
---|---|---|
20 | Got it. |
You need to add FrontendHLSL to the Sema/CMakeLists.txt file too.