@@ -36,13 +36,30 @@ class AsmParserContext {
36
36
std::optional<FileLocRange> getFunctionLocation (const Function *) const ;
37
37
std::optional<FileLocRange> getBlockLocation (const BasicBlock *) const ;
38
38
std::optional<FileLocRange> getInstructionLocation (const Instruction *) const ;
39
- std::optional<Function *> getFunctionAtLocation (const FileLocRange &) const ;
40
- std::optional<Function *> getFunctionAtLocation (const FileLoc &) const ;
41
- std::optional<BasicBlock *> getBlockAtLocation (const FileLocRange &) const ;
42
- std::optional<BasicBlock *> getBlockAtLocation (const FileLoc &) const ;
43
- std::optional<Instruction *>
44
- getInstructionAtLocation (const FileLocRange &) const ;
45
- std::optional<Instruction *> getInstructionAtLocation (const FileLoc &) const ;
39
+ // / Get the function at the requested location range.
40
+ // / If no single function occupies the queried range, or the record is
41
+ // / missing, a nullptr is returned.
42
+ Function *getFunctionAtLocation (const FileLocRange &) const ;
43
+ // / Get the function at the requested location.
44
+ // / If no function occupies the queried location, or the record is missing, a
45
+ // / nullptr is returned.
46
+ Function *getFunctionAtLocation (const FileLoc &) const ;
47
+ // / Get the block at the requested location range.
48
+ // / If no single block occupies the queried range, or the record is missing, a
49
+ // / nullptr is returned.
50
+ BasicBlock *getBlockAtLocation (const FileLocRange &) const ;
51
+ // / Get the block at the requested location.
52
+ // / If no block occupies the queried location, or the record is missing, a
53
+ // / nullptr is returned.
54
+ BasicBlock *getBlockAtLocation (const FileLoc &) const ;
55
+ // / Get the instruction at the requested location range.
56
+ // / If no single instruction occupies the queried range, or the record is
57
+ // / missing, a nullptr is returned.
58
+ Instruction *getInstructionAtLocation (const FileLocRange &) const ;
59
+ // / Get the instruction at the requested location.
60
+ // / If no instruction occupies the queried location, or the record is missing,
61
+ // / a nullptr is returned.
62
+ Instruction *getInstructionAtLocation (const FileLoc &) const ;
46
63
bool addFunctionLocation (Function *, const FileLocRange &);
47
64
bool addBlockLocation (BasicBlock *, const FileLocRange &);
48
65
bool addInstructionLocation (Instruction *, const FileLocRange &);
0 commit comments