2
0
Эх сурвалжийг харах

Move WinAdapter into interface directory (#5066)

Since it is shipped and relied upon, the WinAdapter header belongs in
the release directory. This removes the need to include the Support
directory for building purposes

revises fix to #4918
Greg Roth 2 жил өмнө
parent
commit
5eb7c77d7c
35 өөрчлөгдсөн 33 нэмэгдсэн , 34 устгасан
  1. 0 1
      CMakeLists.txt
  2. 1 1
      include/dxc/DxilContainer/DxilContainer.h
  3. 1 1
      include/dxc/DxilContainer/DxilPipelineStateValidation.h
  4. 1 1
      include/dxc/DxilContainer/DxilRuntimeReflection.h
  5. 1 1
      include/dxc/DxilRootSignature/DxilRootSignature.h
  6. 1 1
      include/dxc/HLSL/DxilValidation.h
  7. 1 1
      include/dxc/Support/Global.h
  8. 1 1
      include/dxc/Support/WinFunctions.h
  9. 1 1
      include/dxc/Support/WinIncludes.h
  10. 1 1
      include/dxc/Support/exception.h
  11. 1 1
      include/dxc/Test/WEXAdapter.h
  12. 0 0
      include/dxc/WinAdapter.h
  13. 1 1
      include/llvm-c/Core.h
  14. 1 1
      include/llvm-c/Disassembler.h
  15. 1 1
      include/llvm/ADT/STLExtras.h
  16. 1 1
      include/llvm/Analysis/ConstantFolding.h
  17. 1 1
      include/llvm/MC/MCStreamer.h
  18. 1 1
      include/llvm/Support/ConvertUTF.h
  19. 1 1
      include/llvm/Support/FileSystem.h
  20. 1 1
      include/llvm/Support/Format.h
  21. 1 1
      include/llvm/Support/MathExtras.h
  22. 1 1
      include/llvm/TableGen/Main.h
  23. 1 1
      lib/DXIL/DxilModule.cpp
  24. 1 1
      lib/DXIL/DxilModuleHelper.cpp
  25. 1 1
      lib/DxilContainer/DxilContainerReader.cpp
  26. 1 1
      lib/HLSL/DxilContainerReflection.cpp
  27. 1 1
      lib/HLSL/HLModule.cpp
  28. 1 1
      lib/MSSupport/MSFileSystemImpl.cpp
  29. 1 1
      lib/Support/ConvertUTFWrapper.cpp
  30. 1 1
      lib/Support/regerror.c
  31. 1 1
      lib/Support/regex_impl.h
  32. 1 1
      tools/clang/include/clang/AST/HlslTypes.h
  33. 1 1
      tools/clang/lib/Sema/SemaHLSL.cpp
  34. 1 1
      tools/clang/tools/dxcompiler/dxillib.h
  35. 1 1
      tools/clang/unittests/HLSL/HLSLTestOptions.cpp

+ 0 - 1
CMakeLists.txt

@@ -608,7 +608,6 @@ endif()
 
 include_directories( ${LLVM_INCLUDE_DIR} ${LLVM_MAIN_INCLUDE_DIR})
 
-include_directories( ${LLVM_MAIN_INCLUDE_DIR}/dxc/Support) # HLSL Change
 include_directories( ${LLVM_INCLUDE_DIR}/dxc/Tracing) # HLSL Change
 
 # when crosscompiling import the executable targets from a file

+ 1 - 1
include/dxc/DxilContainer/DxilContainer.h

@@ -17,7 +17,7 @@
 #include <stdint.h>
 #include <iterator>
 #include "dxc/DXIL/DxilConstants.h"
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 
 struct IDxcContainerReflection;
 

+ 1 - 1
include/dxc/DxilContainer/DxilPipelineStateValidation.h

@@ -14,7 +14,7 @@
 
 #include <stdint.h>
 #include <cstring>
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 
 // Don't include assert.h here.
 // Since this header is included from multiple environments,

+ 1 - 1
include/dxc/DxilContainer/DxilRuntimeReflection.h

@@ -12,7 +12,7 @@
 #pragma once
 
 #include "dxc/DXIL/DxilConstants.h"
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 
 #define RDAT_NULL_REF ((uint32_t)0xFFFFFFFF)
 

+ 1 - 1
include/dxc/DxilRootSignature/DxilRootSignature.h

@@ -16,7 +16,7 @@
 
 #include <stdint.h>
 
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 #include "dxc/DXIL/DxilConstants.h"
 
 struct IDxcBlob;

+ 1 - 1
include/dxc/HLSL/DxilValidation.h

@@ -13,7 +13,7 @@
 
 #include "dxc/Support/Global.h"
 #include "dxc/DXIL/DxilConstants.h"
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 #include <memory>
 
 namespace llvm {

+ 1 - 1
include/dxc/Support/Global.h

@@ -27,7 +27,7 @@ typedef _Return_type_success_(return >= 0) long HRESULT;
 #include <stdarg.h>
 #include <system_error>
 #include "dxc/Support/exception.h"
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 
 ///////////////////////////////////////////////////////////////////////////////
 // Memory allocation support.

+ 1 - 1
include/dxc/Support/WinFunctions.h

@@ -15,7 +15,7 @@
 #ifndef LLVM_SUPPORT_WINFUNCTIONS_H
 #define LLVM_SUPPORT_WINFUNCTIONS_H
 
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 
 #ifndef _WIN32
 

+ 1 - 1
include/dxc/Support/WinIncludes.h

@@ -61,7 +61,7 @@ template <class T> void swap(CComHeapPtr<T> &a, CComHeapPtr<T> &b) {
 
 #else // _MSC_VER
 
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 
 #ifdef __cplusplus
 // Define operator overloads to enable bit operations on enum values that are

+ 1 - 1
include/dxc/Support/exception.h

@@ -11,7 +11,7 @@
 #pragma once
 
 #include "dxc/Support/ErrorCodes.h"
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 #include <exception>
 #include <string>
 

+ 1 - 1
include/dxc/Test/WEXAdapter.h

@@ -6,7 +6,7 @@
 #include <unistd.h>
 #include <wchar.h>
 
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 #include "dxc/Support/WinFunctions.h"
 #include "gtest/gtest.h"
 

+ 0 - 0
include/dxc/Support/WinAdapter.h → include/dxc/WinAdapter.h


+ 1 - 1
include/llvm-c/Core.h

@@ -15,7 +15,7 @@
 #ifndef LLVM_C_CORE_H
 #define LLVM_C_CORE_H
 
-#include "dxc/Support/WinAdapter.h" // HLSL Change
+#include "dxc/WinAdapter.h" // HLSL Change
 #include "llvm-c/Support.h"
 
 #ifdef __cplusplus

+ 1 - 1
include/llvm-c/Disassembler.h

@@ -15,7 +15,7 @@
 #ifndef LLVM_C_DISASSEMBLER_H
 #define LLVM_C_DISASSEMBLER_H
 
-#include "dxc/Support/WinAdapter.h" // HLSL Change
+#include "dxc/WinAdapter.h" // HLSL Change
 #include "llvm/Support/DataTypes.h"
 #include <stddef.h>
 

+ 1 - 1
include/llvm/ADT/STLExtras.h

@@ -17,7 +17,7 @@
 #ifndef LLVM_ADT_STLEXTRAS_H
 #define LLVM_ADT_STLEXTRAS_H
 
-#include "dxc/Support/WinAdapter.h" // HLSL Change
+#include "dxc/WinAdapter.h" // HLSL Change
 #include "llvm/Support/Compiler.h"
 #include <algorithm> // for std::all_of
 #include <cassert>

+ 1 - 1
include/llvm/Analysis/ConstantFolding.h

@@ -20,7 +20,7 @@
 #ifndef LLVM_ANALYSIS_CONSTANTFOLDING_H
 #define LLVM_ANALYSIS_CONSTANTFOLDING_H
 
-#include "dxc/Support/WinAdapter.h" // HLSL Change
+#include "dxc/WinAdapter.h" // HLSL Change
 
 namespace llvm {
   class Constant;

+ 1 - 1
include/llvm/MC/MCStreamer.h

@@ -14,7 +14,7 @@
 #ifndef LLVM_MC_MCSTREAMER_H
 #define LLVM_MC_MCSTREAMER_H
 
-#include "dxc/Support/WinAdapter.h" // HLSL Change
+#include "dxc/WinAdapter.h" // HLSL Change
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/MC/MCDirectives.h"

+ 1 - 1
include/llvm/Support/ConvertUTF.h

@@ -180,7 +180,7 @@ unsigned getNumBytesForUTF8(UTF8 firstByte);
 /*************************************************************************/
 /* Below are LLVM-specific wrappers of the functions above. */
 
-#include "dxc/Support/WinAdapter.h" // HLSL Change
+#include "dxc/WinAdapter.h" // HLSL Change
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/StringRef.h"
 

+ 1 - 1
include/llvm/Support/FileSystem.h

@@ -27,7 +27,7 @@
 #ifndef LLVM_SUPPORT_FILESYSTEM_H
 #define LLVM_SUPPORT_FILESYSTEM_H
 
-#include "dxc/Support/WinAdapter.h" // HLSL Change
+#include "dxc/WinAdapter.h" // HLSL Change
 #include "llvm/ADT/IntrusiveRefCntPtr.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/Twine.h"

+ 1 - 1
include/llvm/Support/Format.h

@@ -23,7 +23,7 @@
 #ifndef LLVM_SUPPORT_FORMAT_H
 #define LLVM_SUPPORT_FORMAT_H
 
-#include "dxc/Support/WinAdapter.h" // HLSL Change
+#include "dxc/WinAdapter.h" // HLSL Change
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Support/DataTypes.h"

+ 1 - 1
include/llvm/Support/MathExtras.h

@@ -14,7 +14,7 @@
 #ifndef LLVM_SUPPORT_MATHEXTRAS_H
 #define LLVM_SUPPORT_MATHEXTRAS_H
 
-#include "dxc/Support/WinAdapter.h" // HLSL Change
+#include "dxc/WinAdapter.h" // HLSL Change
 #include "llvm/Support/Compiler.h"
 #include "llvm/Support/SwapByteOrder.h"
 #include <cassert>

+ 1 - 1
include/llvm/TableGen/Main.h

@@ -18,7 +18,7 @@
 #ifdef _WIN32
 #include <sal.h>
 #else
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 #endif
 // HLSL Change Ends
 

+ 1 - 1
lib/DXIL/DxilModule.cpp

@@ -14,7 +14,7 @@
 #include "dxc/DXIL/DxilShaderModel.h"
 #include "dxc/DXIL/DxilSignatureElement.h"
 #include "dxc/DXIL/DxilFunctionProps.h"
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 #include "dxc/DXIL/DxilEntryProps.h"
 #include "dxc/DXIL/DxilSubobject.h"
 #include "dxc/DXIL/DxilInstructions.h"

+ 1 - 1
lib/DXIL/DxilModuleHelper.cpp

@@ -14,7 +14,7 @@
 #include "dxc/DXIL/DxilShaderModel.h"
 #include "dxc/DXIL/DxilSignatureElement.h"
 #include "dxc/DXIL/DxilFunctionProps.h"
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 #include "dxc/DXIL/DxilEntryProps.h"
 #include "dxc/DXIL/DxilSubobject.h"
 #include "dxc/DXIL/DxilInstructions.h"

+ 1 - 1
lib/DxilContainer/DxilContainerReader.cpp

@@ -10,7 +10,7 @@
 ///////////////////////////////////////////////////////////////////////////////
 
 #include "dxc/Support/Global.h"
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 #include "dxc/DxilContainer/DxilContainer.h"
 #include "dxc/DxilContainer/DxilContainerReader.h"
 

+ 1 - 1
lib/HLSL/DxilContainerReflection.cpp

@@ -42,7 +42,7 @@
 #else
 // Dummy D3D11 struct to allow nix-dead code to compile
 struct D3D11_SHADER_INPUT_BIND_DESC {int dummy;};
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 #endif
 
 #include "dxc/DxilContainer/DxilRuntimeReflection.h"

+ 1 - 1
lib/HLSL/HLModule.cpp

@@ -15,7 +15,7 @@
 #include "dxc/HLSL/HLModule.h"
 #include "dxc/DXIL/DxilTypeSystem.h"
 #include "dxc/DXIL/DxilUtil.h"
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/IR/Constants.h"

+ 1 - 1
lib/MSSupport/MSFileSystemImpl.cpp

@@ -26,7 +26,7 @@
 #include <new>
 
 #include "dxc/Support/WinIncludes.h"
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 #include "llvm/Support/MSFileSystem.h"
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////

+ 1 - 1
lib/Support/ConvertUTFWrapper.cpp

@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "dxc/Support/WinAdapter.h" // HLSL Change
+#include "dxc/WinAdapter.h" // HLSL Change
 #include "llvm/Support/ConvertUTF.h"
 #include "llvm/Support/SwapByteOrder.h"
 #include <string>

+ 1 - 1
lib/Support/regerror.c

@@ -45,7 +45,7 @@
 
 #include "regutils.h"
 
-#include "dxc/Support/WinAdapter.h" // HLSL Change
+#include "dxc/WinAdapter.h" // HLSL Change
 
 #ifdef _MSC_VER
 #define snprintf _snprintf

+ 1 - 1
lib/Support/regex_impl.h

@@ -38,7 +38,7 @@
 #ifndef _REGEX_IMPL_H_ // HLSL Change
 #define _REGEX_IMPL_H_ // HLSL Change
 
-#include "dxc/Support/WinAdapter.h" // HLSL Change
+#include "dxc/WinAdapter.h" // HLSL Change
 #include <sys/types.h>
 
 typedef off_t llvm_regoff_t;

+ 1 - 1
tools/clang/include/clang/AST/HlslTypes.h

@@ -20,7 +20,7 @@
 #include "clang/Basic/SourceLocation.h"
 #include "clang/Basic/Specifiers.h"
 #include "dxc/DXIL/DxilConstants.h"
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 #include "llvm/Support/Casting.h"
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/Optional.h"

+ 1 - 1
tools/clang/lib/Sema/SemaHLSL.cpp

@@ -36,7 +36,7 @@
 #include "llvm/Support/raw_ostream.h"
 #include "dxc/Support/Global.h"
 #include "dxc/Support/WinIncludes.h"
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 #include "dxc/dxcapi.internal.h"
 #include "dxc/HlslIntrinsicOp.h"
 #include "gen_intrin_main_tables_15.h"

+ 1 - 1
tools/clang/tools/dxcompiler/dxillib.h

@@ -13,7 +13,7 @@
 #ifndef __DXC_DXILLIB__
 #define __DXC_DXILLIB__
 
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 #include "dxc/Support/WinIncludes.h"
 
 // Initialize Dxil library. 

+ 1 - 1
tools/clang/unittests/HLSL/HLSLTestOptions.cpp

@@ -14,7 +14,7 @@
 
 #include "HLSLTestOptions.h"
 #include "dxc/Test/WEXAdapter.h"
-#include "dxc/Support/WinAdapter.h"
+#include "dxc/WinAdapter.h"
 
 namespace clang {
 namespace hlsl {