aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2023-09-13 13:22:57 +0200
committerBenjamin Kramer <benny.kra@googlemail.com>2023-09-13 13:22:57 +0200
commit88b7e06dcf9723d0869b0c6bee030b4140e4366d (patch)
tree23cce47baa16a8466ee0b7eba693719193bf4ce6 /clang/lib/CodeGen/CodeGenModule.h
parent47a9cd03435342f179a0df9daa1b918d33b03354 (diff)
downloadllvm-88b7e06dcf9723d0869b0c6bee030b4140e4366d.zip
llvm-88b7e06dcf9723d0869b0c6bee030b4140e4366d.tar.gz
llvm-88b7e06dcf9723d0869b0c6bee030b4140e4366d.tar.bz2
Revert "[clang][CodeGen] Emit annotations for function declarations."
This reverts commit c6a33ff49dfb3498dae15c718820ea3d9c19f3cb. Makes clang segfault. // clang t.cc class a; class c { public: [[clang::annotate("")]] c(const c *) {} }; class d { d(const c *, a *, a *); c e; }; d::d(const c *f, a *, a *) : e(f) {}
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 8b0d68a..073b471 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -431,10 +431,6 @@ private:
/// Global annotations.
std::vector<llvm::Constant*> Annotations;
- // Store deferred function annotations so they can be emitted at the end with
- // most up to date ValueDecl that will have all the inherited annotations.
- llvm::DenseMap<StringRef, const ValueDecl *> DeferredAnnotations;
-
/// Map used to get unique annotation strings.
llvm::StringMap<llvm::Constant*> AnnotationStrings;