summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index
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/lib/Index
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/lib/Index')
-rw-r--r--clang/lib/Index/CMakeLists.txt1
-rw-r--r--clang/lib/Index/CodegenNameGenerator.cpp36
2 files changed, 0 insertions, 37 deletions
diff --git a/clang/lib/Index/CMakeLists.txt b/clang/lib/Index/CMakeLists.txt
index 0551d434679..e4ea7ea1660 100644
--- a/clang/lib/Index/CMakeLists.txt
+++ b/clang/lib/Index/CMakeLists.txt
@@ -4,7 +4,6 @@ set(LLVM_LINK_COMPONENTS
)
add_clang_library(clangIndex
- CodegenNameGenerator.cpp
CommentToXML.cpp
FileIndexRecord.cpp
IndexBody.cpp
diff --git a/clang/lib/Index/CodegenNameGenerator.cpp b/clang/lib/Index/CodegenNameGenerator.cpp
deleted file mode 100644
index 56d3d060348..00000000000
--- a/clang/lib/Index/CodegenNameGenerator.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-//===- CodegenNameGenerator.cpp - Codegen name generation -----------------===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-//
-// Determines the name that the symbol will get for code generation.
-//
-//===----------------------------------------------------------------------===//
-
-#include "clang/Index/CodegenNameGenerator.h"
-#include "clang/AST/ASTContext.h"
-
-using namespace clang;
-using namespace clang::index;
-
-CodegenNameGenerator::CodegenNameGenerator(ASTContext &Ctx)
- : Impl(new ASTNameGenerator(Ctx)) {
-}
-
-CodegenNameGenerator::~CodegenNameGenerator() {
-}
-
-bool CodegenNameGenerator::writeName(const Decl *D, raw_ostream &OS) {
- return Impl->writeName(D, OS);
-}
-
-std::string CodegenNameGenerator::getName(const Decl *D) {
- return Impl->getName(D);
-}
-
-std::vector<std::string> CodegenNameGenerator::getAllManglings(const Decl *D) {
- return Impl->getAllManglings(D);
-}
OpenPOWER on IntegriCloud