[llvm] r247409 - Add #include llvm-config.h to Locale.cpp which depends on LLVM_ON_WIN32.

Yaron Keren via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 06:22:47 PDT 2015


Author: yrnkrn
Date: Fri Sep 11 08:22:47 2015
New Revision: 247409

URL: http://llvm.org/viewvc/llvm-project?rev=247409&view=rev
Log:
Add #include llvm-config.h to Locale.cpp which depends on LLVM_ON_WIN32.
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>.


Modified:
    llvm/trunk/lib/Support/Locale.cpp

Modified: llvm/trunk/lib/Support/Locale.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Locale.cpp?rev=247409&r1=247408&r2=247409&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Locale.cpp (original)
+++ llvm/trunk/lib/Support/Locale.cpp Fri Sep 11 08:22:47 2015
@@ -1,3 +1,4 @@
+#include "llvm/Config/llvm-config.h"
 #include "llvm/Support/Locale.h"
 #include "llvm/Support/Unicode.h"
 




More information about the llvm-commits mailing list