diff options
author | martinboehme <mboehme@google.com> | 2024-03-19 08:44:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 08:44:08 +0100 |
commit | 59ff3adcc1310e22ab31163767e49b4edb20c6b4 (patch) | |
tree | 91c852cb0187be6c61070a03f95537ef2f40e39b /clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp | |
parent | eb5623d10147d1069885ccaa57d81fae3260b926 (diff) | |
download | llvm-59ff3adcc1310e22ab31163767e49b4edb20c6b4.zip llvm-59ff3adcc1310e22ab31163767e49b4edb20c6b4.tar.gz llvm-59ff3adcc1310e22ab31163767e49b4edb20c6b4.tar.bz2 |
[clang][dataflow][NFC] Rename `ControlFlowContext` to `AdornedCFG`. (#85640)
This expresses better what the class actually does, and it reduces the
number of
`Context`s that we have in the codebase.
A deprecated alias `ControlFlowContext` is available from the old
header.
Diffstat (limited to 'clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp')
-rw-r--r-- | clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp b/clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp index f4c4af0..d520539 100644 --- a/clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp +++ b/clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp @@ -288,8 +288,8 @@ void DataflowAnalysisContext::dumpFlowCondition(Atom Token, } } -const ControlFlowContext * -DataflowAnalysisContext::getControlFlowContext(const FunctionDecl *F) { +const AdornedCFG * +DataflowAnalysisContext::getAdornedCFG(const FunctionDecl *F) { // Canonicalize the key: F = F->getDefinition(); if (F == nullptr) @@ -299,10 +299,10 @@ DataflowAnalysisContext::getControlFlowContext(const FunctionDecl *F) { return &It->second; if (F->doesThisDeclarationHaveABody()) { - auto CFCtx = ControlFlowContext::build(*F); + auto ACFG = AdornedCFG::build(*F); // FIXME: Handle errors. - assert(CFCtx); - auto Result = FunctionContexts.insert({F, std::move(*CFCtx)}); + assert(ACFG); + auto Result = FunctionContexts.insert({F, std::move(*ACFG)}); return &Result.first->second; } |