summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ExternalASTMerger.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2017-07-10 23:47:00 +0000
committerSean Callanan <scallanan@apple.com>2017-07-10 23:47:00 +0000
commit17c8c20d7ee6b7d8a1e277be405953a0bf647351 (patch)
treee3e4e2becd10941dea5d522d99cf150122430311 /clang/lib/AST/ExternalASTMerger.cpp
parent7eaf1d96ad9a90d077e5cb0b299fe132ac793868 (diff)
downloadbcm5719-llvm-17c8c20d7ee6b7d8a1e277be405953a0bf647351.tar.gz
bcm5719-llvm-17c8c20d7ee6b7d8a1e277be405953a0bf647351.zip
clang-import-test had some dead code. I did the following to eliminate it:
- eliminated error handling for the indirect CompilerInstance, which should never generate an error as it is created; - added a new test for direct importation; and - removed an unused implementation of the CompleteType() API. This brings clang-import-test.cpp and ExternalASTMerge.cpp back to 100% coverage on all metrics measured by DLLVM_BUILD_INSTRUMENTED_COVERAGE. Differential Revision: https://reviews.llvm.org/D35220 llvm-svn: 307600
Diffstat (limited to 'clang/lib/AST/ExternalASTMerger.cpp')
-rw-r--r--clang/lib/AST/ExternalASTMerger.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/AST/ExternalASTMerger.cpp b/clang/lib/AST/ExternalASTMerger.cpp
index b746edaf643..4f4a99794c5 100644
--- a/clang/lib/AST/ExternalASTMerger.cpp
+++ b/clang/lib/AST/ExternalASTMerger.cpp
@@ -180,8 +180,3 @@ void ExternalASTMerger::FindExternalLexicalDecls(
});
}
-void ExternalASTMerger::CompleteType(TagDecl *Tag) {
- SmallVector<Decl *, 0> Result;
- FindExternalLexicalDecls(Tag, [](Decl::Kind) { return true; }, Result);
- Tag->setHasExternalLexicalStorage(false);
-}
OpenPOWER on IntegriCloud