Skip to content

Commit f76e45c

Browse files
committed
revert to stage 1
1 parent 43ef7b5 commit f76e45c

File tree

5 files changed

+9
-84
lines changed

5 files changed

+9
-84
lines changed

include/dxc/Support/dxcapi.extval.h

Lines changed: 0 additions & 20 deletions
This file was deleted.

include/dxc/Support/dxcapi.use.h

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ class DxcDllSupport {
8989
other.m_createFn2 = nullptr;
9090
}
9191

92-
virtual ~DxcDllSupport() { Cleanup(); }
92+
~DxcDllSupport() { Cleanup(); }
9393

94-
HRESULT virtual Initialize() {
94+
HRESULT Initialize() {
9595
return InitializeInternal(kDxCompilerLib, "DxcCreateInstance");
9696
}
9797

98-
HRESULT virtual InitializeForDll(LPCSTR dll, LPCSTR entryPoint) {
98+
HRESULT InitializeForDll(LPCSTR dll, LPCSTR entryPoint) {
9999
return InitializeInternal(dll, entryPoint);
100100
}
101101

@@ -104,8 +104,7 @@ class DxcDllSupport {
104104
return CreateInstance(clsid, __uuidof(TInterface), (IUnknown **)pResult);
105105
}
106106

107-
HRESULT virtual CreateInstance(REFCLSID clsid, REFIID riid,
108-
IUnknown **pResult) {
107+
HRESULT CreateInstance(REFCLSID clsid, REFIID riid, IUnknown **pResult) {
109108
if (pResult == nullptr)
110109
return E_POINTER;
111110
if (m_dll == nullptr)
@@ -121,7 +120,7 @@ class DxcDllSupport {
121120
(IUnknown **)pResult);
122121
}
123122

124-
HRESULT virtual CreateInstance2(IMalloc *pMalloc, REFCLSID clsid, REFIID riid,
123+
HRESULT CreateInstance2(IMalloc *pMalloc, REFCLSID clsid, REFIID riid,
125124
IUnknown **pResult) {
126125
if (pResult == nullptr)
127126
return E_POINTER;
@@ -133,21 +132,11 @@ class DxcDllSupport {
133132
return hr;
134133
}
135134

136-
bool virtual HasCreateWithMalloc() const { return m_createFn2 != nullptr; }
135+
bool HasCreateWithMalloc() const { return m_createFn2 != nullptr; }
137136

138137
bool IsEnabled() const { return m_dll != nullptr; }
139138

140-
bool GetCreateInstanceProcs(DxcCreateInstanceProc *pCreateFn,
141-
DxcCreateInstance2Proc *pCreateFn2) const {
142-
if (pCreateFn == nullptr || pCreateFn2 == nullptr ||
143-
m_createFn == nullptr)
144-
return false;
145-
*pCreateFn = m_createFn;
146-
*pCreateFn2 = m_createFn2;
147-
return true;
148-
}
149-
150-
void virtual Cleanup() {
139+
void Cleanup() {
151140
if (m_dll != nullptr) {
152141
m_createFn = nullptr;
153142
m_createFn2 = nullptr;
@@ -160,7 +149,7 @@ class DxcDllSupport {
160149
}
161150
}
162151

163-
HMODULE virtual Detach() {
152+
HMODULE Detach() {
164153
HMODULE hModule = m_dll;
165154
m_dll = nullptr;
166155
return hModule;

lib/DxcSupport/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ add_llvm_library(LLVMDxcSupport
1010
WinAdapter.cpp
1111
WinIncludes.cpp
1212
WinFunctions.cpp
13-
dxcapi.extval.cpp
1413
)
1514

1615
#generate header with platform-specific library name

lib/DxcSupport/dxcapi.extval.cpp

Lines changed: 0 additions & 43 deletions
This file was deleted.

tools/clang/unittests/HLSLTestLib/FileCheckerTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ FileRunCommandPart::RunDxc(dxc::DxcDllSupport &DllSupport,
533533
// that the validator version is at least as high as the requested
534534
// version. When ValVerMajor is 0, validation cannot be run against
535535
// the module.
536-
if (bValVerExplicit && opts.ValVerMajor != 0 && !bValVerExplicit)
536+
if (bValVerExplicit && opts.ValVerMajor != 0 && !opts.DisableValidation)
537537
result = CheckDxilVer(DllSupport, opts.ValVerMajor, opts.ValVerMinor);
538538
if (result.AbortPipeline)
539539
return result;

0 commit comments

Comments
 (0)