File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ class MCSymbolRefExpr;
33
33
// / needed for parsing.
34
34
class MCExpr {
35
35
public:
36
+ // Allow MC classes to access the private `print` function.
37
+ friend class MCAsmInfo ;
38
+ friend class MCFragment ;
39
+ friend class MCOperand ;
36
40
enum ExprKind : uint8_t {
37
41
Binary, // /< Binary expressions.
38
42
Constant, // /< Constant expressions.
@@ -53,6 +57,8 @@ class MCExpr {
53
57
unsigned SubclassData : NumSubclassDataBits;
54
58
SMLoc Loc;
55
59
60
+ void print (raw_ostream &OS, const MCAsmInfo *MAI,
61
+ int SurroundingPrec = 0 ) const ;
56
62
bool evaluateAsAbsolute (int64_t &Res, const MCAssembler *Asm,
57
63
bool InSet) const ;
58
64
@@ -83,9 +89,6 @@ class MCExpr {
83
89
// / \name Utility Methods
84
90
// / @{
85
91
86
- // TODO: Make this private. Users should call MCAsmInfo::printExpr instead.
87
- LLVM_ABI void print (raw_ostream &OS, const MCAsmInfo *MAI,
88
- int SurroundingPrec = 0 ) const ;
89
92
LLVM_ABI void dump () const ;
90
93
91
94
// / @}
You can’t perform that action at this time.
0 commit comments