summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Windows/Path.inc
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-06-01 22:23:46 +0000
committerZachary Turner <zturner@google.com>2018-06-01 22:23:46 +0000
commitb44d7a0da11e0601d0ca34106ad79875378f043f (patch)
tree72a709298d91adfd587d2987a302eb76d3c04342 /llvm/lib/Support/Windows/Path.inc
parentc8a3c86c77362ba8da55ff7514d03205771179c2 (diff)
downloadbcm5719-llvm-b44d7a0da11e0601d0ca34106ad79875378f043f.tar.gz
bcm5719-llvm-b44d7a0da11e0601d0ca34106ad79875378f043f.zip
Move some function declarations out of WindowsSupport.h
The idea behind WindowsSupport.h is that it's in the source directory so that windows.h'isms don't leak out into the larger LLVM project. To that end, any symbol that references a symbol from windows.h must be in this private header, and not in a public header. However, we had some useful utility functions in WindowsSupport.h which have no dependency on the Windows API, but still only make sense on Windows. Those functions should be usable outside of Support since there is no risk of causing a windows.h leak. Although this introduces some preprocessor logic in some header files, It's not too egregious and it's better than the alternative of duplicating a ton of code. Differential Revision: https://reviews.llvm.org/D47662 llvm-svn: 333798
Diffstat (limited to 'llvm/lib/Support/Windows/Path.inc')
-rw-r--r--llvm/lib/Support/Windows/Path.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc
index ab3b222397f..0d1631d6bb0 100644
--- a/llvm/lib/Support/Windows/Path.inc
+++ b/llvm/lib/Support/Windows/Path.inc
@@ -17,6 +17,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/ADT/STLExtras.h"
+#include "llvm/Support/ConvertUTF.h"
#include "llvm/Support/WindowsError.h"
#include <fcntl.h>
#include <io.h>
OpenPOWER on IntegriCloud