Skip to content

Commit 416514e

Browse files
committed
Move private members to top of class definition
1 parent b0c5318 commit 416514e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

llvm/include/llvm/AsmParser/AsmParserContext.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ namespace llvm {
2828
/// This information is optionally emitted by the LLParser while
2929
/// it reads LLVM textual IR.
3030
class AsmParserContext {
31+
DenseMap<Function *, FileLocRange> Functions;
32+
DenseMap<BasicBlock *, FileLocRange> Blocks;
33+
DenseMap<Instruction *, FileLocRange> Instructions;
34+
3135
public:
3236
std::optional<FileLocRange> getFunctionLocation(const Function *) const;
3337
std::optional<FileLocRange> getBlockLocation(const BasicBlock *) const;
@@ -42,11 +46,6 @@ class AsmParserContext {
4246
bool addFunctionLocation(Function *, const FileLocRange &);
4347
bool addBlockLocation(BasicBlock *, const FileLocRange &);
4448
bool addInstructionLocation(Instruction *, const FileLocRange &);
45-
46-
private:
47-
DenseMap<Function *, FileLocRange> Functions;
48-
DenseMap<BasicBlock *, FileLocRange> Blocks;
49-
DenseMap<Instruction *, FileLocRange> Instructions;
5049
};
5150
} // namespace llvm
5251

0 commit comments

Comments
 (0)