aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorGuy David <guyda96@gmail.com>2025-09-16 13:08:12 -0700
committerGuy David <guyda96@gmail.com>2025-09-16 13:08:12 -0700
commit1589c07c93ec5c14123e6d5145d25df3a69a37bc (patch)
treeee8c950f78d06db91d6863aeac704d4ec6e39e25 /clang/lib/CodeGen/CodeGenFunction.h
parentb369237c98906891f9e56fd4be4109a25b79e3e9 (diff)
downloadllvm-users/guy-david/separate-indirectbr.zip
llvm-users/guy-david/separate-indirectbr.tar.gz
llvm-users/guy-david/separate-indirectbr.tar.bz2
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index c02ac18..fea0a46 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -1527,6 +1527,11 @@ private:
/// codegen'd as a jump to the IndirectBranch's basic block.
llvm::IndirectBrInst *IndirectBranch = nullptr;
+ /// AddressTakenLabels - Collection of address-taken labels for indirect gotos.
+ /// Each indirect goto statement will create its own indirectbr instruction
+ /// with all these labels as possible destinations.
+ llvm::SmallVector<llvm::BasicBlock *, 8> AddressTakenLabels;
+
/// LocalDeclMap - This keeps track of the LLVM allocas or globals for local C
/// decls.
DeclMapTy LocalDeclMap;