diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-30 12:06:08 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-30 12:06:08 +0000 |
commit | 9feeef40f58171a3c29649d16bd575587b39836f (patch) | |
tree | f60f0816e01549d66a8effc9ef06faef926313d1 /clang/lib/Lex/Preprocessor.cpp | |
parent | b311f4e84ab64d71d38ee9af0ad2d7911cb6d1ee (diff) | |
download | bcm5719-llvm-9feeef40f58171a3c29649d16bd575587b39836f.tar.gz bcm5719-llvm-9feeef40f58171a3c29649d16bd575587b39836f.zip |
Move UTF conversion routines from clang/lib/Basic to llvm/lib/Support
This is required to use them in TableGen.
llvm-svn: 173924
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index b933a5fd750..4c3c181f446 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -27,7 +27,6 @@ #include "clang/Lex/Preprocessor.h" #include "MacroArgs.h" -#include "clang/Basic/ConvertUTF.h" #include "clang/Basic/FileManager.h" #include "clang/Basic/SourceManager.h" #include "clang/Basic/TargetInfo.h" @@ -47,6 +46,7 @@ #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringExtras.h" #include "llvm/Support/Capacity.h" +#include "llvm/Support/ConvertUTF.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/raw_ostream.h" using namespace clang; @@ -501,7 +501,7 @@ static void appendCodePoint(unsigned Codepoint, llvm::SmallVectorImpl<char> &Str) { char ResultBuf[4]; char *ResultPtr = ResultBuf; - bool Res = ConvertCodePointToUTF8(Codepoint, ResultPtr); + bool Res = llvm::ConvertCodePointToUTF8(Codepoint, ResultPtr); (void)Res; assert(Res && "Unexpected conversion failure"); Str.append(ResultBuf, ResultPtr); |