[llvm] 936ca1e - WindowsSupport.h: do not depend on private config header

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 1 13:05:16 PDT 2021


Author: Andrew Kelley
Date: 2021-06-01T23:05:03+03:00
New Revision: 936ca1e21a91843c76b20c6c857aaddd5fa3d42a

URL: https://github.com/llvm/llvm-project/commit/936ca1e21a91843c76b20c6c857aaddd5fa3d42a
DIFF: https://github.com/llvm/llvm-project/commit/936ca1e21a91843c76b20c6c857aaddd5fa3d42a.diff

LOG: WindowsSupport.h: do not depend on private config header

WindowsSupport.h is a public header, however if it gets included, will cause a compile error indicating that llvm/Config/config.h cannot be found, because config.h is a private header. However there is no actual dependency on the private things in this header, so it can be changed to the public config header.

Reviewed By: amccarth

Differential Revision: https://reviews.llvm.org/D103370

Added: 
    

Modified: 
    llvm/include/llvm/Support/Windows/WindowsSupport.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/Windows/WindowsSupport.h b/llvm/include/llvm/Support/Windows/WindowsSupport.h
index bd5a90c2c3f00..a45eeaba4ad5b 100644
--- a/llvm/include/llvm/Support/Windows/WindowsSupport.h
+++ b/llvm/include/llvm/Support/Windows/WindowsSupport.h
@@ -37,7 +37,7 @@
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/ADT/Twine.h"
-#include "llvm/Config/config.h" // Get build system configuration settings
+#include "llvm/Config/llvm-config.h" // Get build system configuration settings
 #include "llvm/Support/Allocator.h"
 #include "llvm/Support/Chrono.h"
 #include "llvm/Support/Compiler.h"


        


More information about the llvm-commits mailing list