This repository was archived by the owner on Feb 5, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 18
18
#include " llvm/IR/Function.h"
19
19
#include " llvm/IR/ValueHandle.h"
20
20
21
- using namespace llvm ;
21
+ namespace llvm {
22
+ namespace cflaa {
22
23
23
24
template <typename AAResult> struct FunctionHandle final : public CallbackVH {
24
25
FunctionHandle (Function *Fn, AAResult *Result)
@@ -41,8 +42,6 @@ template <typename AAResult> struct FunctionHandle final : public CallbackVH {
41
42
}
42
43
};
43
44
44
- namespace llvm {
45
- namespace cflaa {
46
45
static inline const Function *parentFunctionOfValue (const Value *Val) {
47
46
if (auto *Inst = dyn_cast<Instruction>(Val)) {
48
47
auto *Bb = Inst->getParent ();
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ class CFLAndersAAResult : public AAResultBase<CFLAndersAAResult> {
76
76
// / that simply has empty sets.
77
77
DenseMap<const Function *, Optional<FunctionInfo>> Cache;
78
78
79
- std::forward_list<FunctionHandle<CFLAndersAAResult>> Handles;
79
+ std::forward_list<cflaa:: FunctionHandle<CFLAndersAAResult>> Handles;
80
80
};
81
81
82
82
// / Analysis pass providing a never-invalidated alias analysis result.
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class CFLSteensAAResult : public AAResultBase<CFLSteensAAResult> {
94
94
// / have any kind of recursion, it is discernable from a function
95
95
// / that simply has empty sets.
96
96
DenseMap<Function *, Optional<FunctionInfo>> Cache;
97
- std::forward_list<FunctionHandle<CFLSteensAAResult>> Handles;
97
+ std::forward_list<cflaa:: FunctionHandle<CFLSteensAAResult>> Handles;
98
98
99
99
FunctionInfo buildSetsFrom (Function *F);
100
100
};
You can’t perform that action at this time.
0 commit comments