summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test
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/c-index-test
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/c-index-test')
-rw-r--r--clang/tools/c-index-test/core_main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/tools/c-index-test/core_main.cpp b/clang/tools/c-index-test/core_main.cpp
index f1edce0092c..faf8b668b4e 100644
--- a/clang/tools/c-index-test/core_main.cpp
+++ b/clang/tools/c-index-test/core_main.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "clang/AST/Mangle.h"
#include "clang/Basic/LangOptions.h"
#include "clang/CodeGen/ObjectFilePCHContainerOperations.h"
#include "clang/Frontend/ASTUnit.h"
@@ -15,7 +16,6 @@
#include "clang/Index/IndexingAction.h"
#include "clang/Index/IndexDataConsumer.h"
#include "clang/Index/USRGeneration.h"
-#include "clang/Index/CodegenNameGenerator.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Serialization/ASTReader.h"
#include "llvm/Support/CommandLine.h"
@@ -79,7 +79,7 @@ namespace {
class PrintIndexDataConsumer : public IndexDataConsumer {
raw_ostream &OS;
- std::unique_ptr<CodegenNameGenerator> CGNameGen;
+ std::unique_ptr<ASTNameGenerator> ASTNameGen;
std::shared_ptr<Preprocessor> PP;
public:
@@ -87,7 +87,7 @@ public:
}
void initialize(ASTContext &Ctx) override {
- CGNameGen.reset(new CodegenNameGenerator(Ctx));
+ ASTNameGen.reset(new ASTNameGenerator(Ctx));
}
void setPreprocessor(std::shared_ptr<Preprocessor> PP) override {
@@ -112,7 +112,7 @@ public:
printSymbolNameAndUSR(D, Ctx, OS);
OS << " | ";
- if (CGNameGen->writeName(D, OS))
+ if (ASTNameGen->writeName(D, OS))
OS << "<no-cgname>";
OS << " | ";
OpenPOWER on IntegriCloud