File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
llvm/include/llvm/AsmParser Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ namespace llvm {
28
28
// / This information is optionally emitted by the LLParser while
29
29
// / it reads LLVM textual IR.
30
30
class AsmParserContext {
31
+ DenseMap<Function *, FileLocRange> Functions;
32
+ DenseMap<BasicBlock *, FileLocRange> Blocks;
33
+ DenseMap<Instruction *, FileLocRange> Instructions;
34
+
31
35
public:
32
36
std::optional<FileLocRange> getFunctionLocation (const Function *) const ;
33
37
std::optional<FileLocRange> getBlockLocation (const BasicBlock *) const ;
@@ -42,11 +46,6 @@ class AsmParserContext {
42
46
bool addFunctionLocation (Function *, const FileLocRange &);
43
47
bool addBlockLocation (BasicBlock *, const FileLocRange &);
44
48
bool addInstructionLocation (Instruction *, const FileLocRange &);
45
-
46
- private:
47
- DenseMap<Function *, FileLocRange> Functions;
48
- DenseMap<BasicBlock *, FileLocRange> Blocks;
49
- DenseMap<Instruction *, FileLocRange> Instructions;
50
49
};
51
50
} // namespace llvm
52
51
You can’t perform that action at this time.
0 commit comments