summaryrefslogtreecommitdiff
path: root/include/clang/Index
diff options
context:
space:
mode:
authorPuyan Lotfi <puyan@puyan.org>2019-06-19 20:51:35 +0000
committerPuyan Lotfi <puyan@puyan.org>2019-06-19 20:51:35 +0000
commit276f9e79a318281962cf8a42204d0fea74a31daa (patch)
treed20d14da1ccc32aaf9915d825c83156c84236d5f /include/clang/Index
parent529da857ce42fd45d73ec1386bec4c31662bde56 (diff)
downloadclang-276f9e79a318281962cf8a42204d0fea74a31daa.tar.gz
[clang][AST] ASTNameGenerator: A refactoring of CodegenNameGeneratorImpl (NFC).
This is a NFC refactor move of CodegenNameGeneratorImpl from clang::Index to clang:AST (and rename to ASTNameGenerator). The purpose is to make the highlevel mangling code more reusable inside of clang (say in places like clang FrontendAction). This does not affect anything in CodegenNameGenerator, except that CodegenNameGenerator will now use ASTNameGenerator (in AST). Differential Revision: https://reviews.llvm.org/D63535 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363878 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Index')
-rw-r--r--include/clang/Index/CodegenNameGenerator.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Index/CodegenNameGenerator.h b/include/clang/Index/CodegenNameGenerator.h
index d2528a10c9..98b3a5de81 100644
--- a/include/clang/Index/CodegenNameGenerator.h
+++ b/include/clang/Index/CodegenNameGenerator.h
@@ -13,6 +13,7 @@
#ifndef LLVM_CLANG_INDEX_CODEGENNAMEGENERATOR_H
#define LLVM_CLANG_INDEX_CODEGENNAMEGENERATOR_H
+#include "clang/AST/Mangle.h"
#include "clang/Basic/LLVM.h"
#include <memory>
#include <string>
@@ -42,7 +43,7 @@ public:
private:
struct Implementation;
- std::unique_ptr<Implementation> Impl;
+ std::unique_ptr<ASTNameGenerator> Impl;
};
} // namespace index