summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang
diff options
context:
space:
mode:
authorJan Korous <jkorous@apple.com>2019-09-05 20:33:52 +0000
committerJan Korous <jkorous@apple.com>2019-09-05 20:33:52 +0000
commit7e36ecd66dbe528edf67d1a412c4dea24019f178 (patch)
tree1f7ce6293dd2c41c859458a2a17d4e66f85ca797 /clang/tools/libclang
parentf8032379267b06191233971f33df40cb5cafe6d9 (diff)
downloadbcm5719-llvm-7e36ecd66dbe528edf67d1a412c4dea24019f178.tar.gz
bcm5719-llvm-7e36ecd66dbe528edf67d1a412c4dea24019f178.zip
[clang][Index] Replace CodegenNameGenerator with ASTNameGenerator
Follow-up to: 3ff8c3b73f6, d5d15b4c1fd Should be NFC since the original patch just moved the code. llvm-svn: 371117
Diffstat (limited to 'clang/tools/libclang')
-rw-r--r--clang/tools/libclang/CIndex.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp
index 61b60e2bf88..5ea2d5e4a8c 100644
--- a/clang/tools/libclang/CIndex.cpp
+++ b/clang/tools/libclang/CIndex.cpp
@@ -21,6 +21,7 @@
#include "CXType.h"
#include "CursorVisitor.h"
#include "clang/AST/Attr.h"
+#include "clang/AST/Mangle.h"
#include "clang/AST/StmtVisitor.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/DiagnosticCategories.h"
@@ -30,7 +31,6 @@
#include "clang/Basic/Version.h"
#include "clang/Frontend/ASTUnit.h"
#include "clang/Frontend/CompilerInstance.h"
-#include "clang/Index/CodegenNameGenerator.h"
#include "clang/Index/CommentToXML.h"
#include "clang/Lex/HeaderSearch.h"
#include "clang/Lex/Lexer.h"
@@ -4737,8 +4737,8 @@ CXString clang_Cursor_getMangling(CXCursor C) {
return cxstring::createEmpty();
ASTContext &Ctx = D->getASTContext();
- index::CodegenNameGenerator CGNameGen(Ctx);
- return cxstring::createDup(CGNameGen.getName(D));
+ ASTNameGenerator ASTNameGen(Ctx);
+ return cxstring::createDup(ASTNameGen.getName(D));
}
CXStringSet *clang_Cursor_getCXXManglings(CXCursor C) {
@@ -4750,8 +4750,8 @@ CXStringSet *clang_Cursor_getCXXManglings(CXCursor C) {
return nullptr;
ASTContext &Ctx = D->getASTContext();
- index::CodegenNameGenerator CGNameGen(Ctx);
- std::vector<std::string> Manglings = CGNameGen.getAllManglings(D);
+ ASTNameGenerator ASTNameGen(Ctx);
+ std::vector<std::string> Manglings = ASTNameGen.getAllManglings(D);
return cxstring::createSet(Manglings);
}
@@ -4764,8 +4764,8 @@ CXStringSet *clang_Cursor_getObjCManglings(CXCursor C) {
return nullptr;
ASTContext &Ctx = D->getASTContext();
- index::CodegenNameGenerator CGNameGen(Ctx);
- std::vector<std::string> Manglings = CGNameGen.getAllManglings(D);
+ ASTNameGenerator ASTNameGen(Ctx);
+ std::vector<std::string> Manglings = ASTNameGen.getAllManglings(D);
return cxstring::createSet(Manglings);
}
OpenPOWER on IntegriCloud