Skip to content

Commit cba829b

Browse files
committed
we keep trying, this should be it
1 parent be99192 commit cba829b

File tree

2 files changed

+3
-31
lines changed

2 files changed

+3
-31
lines changed

include/dxc/Support/dxcapi.extval.h

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,7 @@ class DxcDllExtValidationLoader : public DllLoader {
2626

2727
HRESULT Initialize() { return InitializeInternal("DxcCreateInstance"); }
2828

29-
/* Note, OverrideDll takes this dll argument and ignores it
30-
to satisfy the IDllLoader interface. The parameter is ignored
31-
because the relevant dlls are specific and known: dxcompiler.dll
32-
and dxil.dll. This class is not designed to handle any other dlls */
33-
HRESULT OverrideDll(LPCSTR dll, LPCSTR entryPoint) {
34-
return InitializeInternal(entryPoint);
35-
}
36-
37-
bool HasCreateWithMalloc() const {
38-
assert(DxCompilerSupport.HasCreateWithMalloc() &&
39-
DxilExtValSupport.HasCreateWithMalloc());
40-
return true;
41-
}
42-
29+
4330
bool IsEnabled() const override { return DxCompilerSupport.IsEnabled(); }
44-
45-
HMODULE Detach() {
46-
// Can't Detach and return a handle for DxilSupport. Cleanup() instead.
47-
DxilExtValSupport.Cleanup();
48-
return DxCompilerSupport.Detach();
49-
}
5031
};
51-
} // namespace dxc
32+
} // namespace dxc

include/dxc/Support/dxcapi.use.h

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class DllLoader {
3131

3232
public:
3333
DllLoader() = default;
34-
DllLoader(const DllLoader &) = delete;
34+
DllLoader(const DllLoader &) = default; // needed for HlslIntellisenseSupport
3535
DllLoader(DllLoader &&) = delete;
3636

3737
template <typename TInterface>
@@ -115,15 +115,6 @@ class SpecificDllLoader : public DllLoader {
115115
SpecificDllLoader()
116116
: m_dll(nullptr), m_createFn(nullptr), m_createFn2(nullptr) {}
117117

118-
SpecificDllLoader(SpecificDllLoader &&other) {
119-
m_dll = other.m_dll;
120-
other.m_dll = nullptr;
121-
m_createFn = other.m_createFn;
122-
other.m_createFn = nullptr;
123-
m_createFn2 = other.m_createFn2;
124-
other.m_createFn2 = nullptr;
125-
}
126-
127118
~SpecificDllLoader() override { Cleanup(); }
128119

129120
HRESULT Initialize() {

0 commit comments

Comments
 (0)