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/AST/CommentLexer.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/AST/CommentLexer.cpp')
-rw-r--r-- | clang/lib/AST/CommentLexer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/CommentLexer.cpp b/clang/lib/AST/CommentLexer.cpp index 464771340dd..b92b1fb33dc 100644 --- a/clang/lib/AST/CommentLexer.cpp +++ b/clang/lib/AST/CommentLexer.cpp @@ -1,8 +1,8 @@ #include "clang/AST/CommentLexer.h" #include "clang/AST/CommentCommandTraits.h" -#include "clang/Basic/ConvertUTF.h" #include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringSwitch.h" +#include "llvm/Support/ConvertUTF.h" #include "llvm/Support/ErrorHandling.h" namespace clang { @@ -48,7 +48,7 @@ static unsigned getCodePoint(StringRef Name) { StringRef Lexer::helperResolveHTMLHexCharacterReference(unsigned CodePoint) const { char *Resolved = Allocator.Allocate<char>(UNI_MAX_UTF8_BYTES_PER_CODE_POINT); char *ResolvedPtr = Resolved; - if (ConvertCodePointToUTF8(CodePoint, ResolvedPtr)) + if (llvm::ConvertCodePointToUTF8(CodePoint, ResolvedPtr)) return StringRef(Resolved, ResolvedPtr - Resolved); else return StringRef(); @@ -223,7 +223,7 @@ StringRef Lexer::resolveHTMLDecimalCharacterReference(StringRef Name) const { char *Resolved = Allocator.Allocate<char>(UNI_MAX_UTF8_BYTES_PER_CODE_POINT); char *ResolvedPtr = Resolved; - if (ConvertCodePointToUTF8(CodePoint, ResolvedPtr)) + if (llvm::ConvertCodePointToUTF8(CodePoint, ResolvedPtr)) return StringRef(Resolved, ResolvedPtr - Resolved); else return StringRef(); |