Add #include llvm-config.h to Locale.cpp which depends on LLVM_ON_WIN32.
authorYaron Keren <yaron.keren@gmail.com>
Fri, 11 Sep 2015 13:22:47 +0000 (13:22 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Fri, 11 Sep 2015 13:22:47 +0000 (13:22 +0000)
Source code was assuming that llvm-config.h would be included somehow but
up to r247253 that added #include "llvm/Support/Compiler.h" to StringRef.h
the config file was not actually included. The inclusion of llvm-config.h
caused a change of behaviour in tools/clang/test/Frontend/source-col-map.c:
previously it would output the original UTF-8 but now it outputs <U+03B1>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247409 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Locale.cpp

index d5cb72b5db3ab2bff1283409bb053083cf1d0854..53bc0e36d830e1b59939b2fd279b9195937acf8d 100644 (file)
@@ -1,3 +1,4 @@
+#include "llvm/Config/llvm-config.h"
 #include "llvm/Support/Locale.h"
 #include "llvm/Support/Unicode.h"