@@ -46,7 +46,7 @@ class MCExpr {
46
46
MCExpr (const MCExpr&) = delete ;
47
47
void operator =(const MCExpr&) = delete ;
48
48
49
- bool EvaluateAsAbsolute (int64_t &Res, const MCAssembler *Asm,
49
+ bool evaluateAsAbsolute (int64_t &Res, const MCAssembler *Asm,
50
50
const MCAsmLayout *Layout,
51
51
const SectionAddrMap *Addrs) const ;
52
52
@@ -57,7 +57,7 @@ class MCExpr {
57
57
protected:
58
58
explicit MCExpr (ExprKind Kind) : Kind(Kind) {}
59
59
60
- bool EvaluateAsRelocatableImpl (MCValue &Res, const MCAssembler *Asm,
60
+ bool evaluateAsRelocatableImpl (MCValue &Res, const MCAssembler *Asm,
61
61
const MCAsmLayout *Layout,
62
62
const MCFixup *Fixup,
63
63
const SectionAddrMap *Addrs, bool InSet) const ;
@@ -86,11 +86,11 @@ class MCExpr {
86
86
// / values. If not given, then only non-symbolic expressions will be
87
87
// / evaluated.
88
88
// / \return - True on success.
89
- bool EvaluateAsAbsolute (int64_t &Res, const MCAsmLayout &Layout,
89
+ bool evaluateAsAbsolute (int64_t &Res, const MCAsmLayout &Layout,
90
90
const SectionAddrMap &Addrs) const ;
91
- bool EvaluateAsAbsolute (int64_t &Res) const ;
92
- bool EvaluateAsAbsolute (int64_t &Res, const MCAssembler &Asm) const ;
93
- bool EvaluateAsAbsolute (int64_t &Res, const MCAsmLayout &Layout) const ;
91
+ bool evaluateAsAbsolute (int64_t &Res) const ;
92
+ bool evaluateAsAbsolute (int64_t &Res, const MCAssembler &Asm) const ;
93
+ bool evaluateAsAbsolute (int64_t &Res, const MCAsmLayout &Layout) const ;
94
94
95
95
bool evaluateKnownAbsolute (int64_t &Res, const MCAsmLayout &Layout) const ;
96
96
@@ -101,21 +101,21 @@ class MCExpr {
101
101
// / \param Layout - The assembler layout object to use for evaluating values.
102
102
// / \param Fixup - The Fixup object if available.
103
103
// / \return - True on success.
104
- bool EvaluateAsRelocatable (MCValue &Res, const MCAsmLayout *Layout,
104
+ bool evaluateAsRelocatable (MCValue &Res, const MCAsmLayout *Layout,
105
105
const MCFixup *Fixup) const ;
106
106
107
107
// / \brief Try to evaluate the expression to the form (a - b + constant) where
108
108
// / neither a nor b are variables.
109
109
// /
110
- // / This is a more aggressive variant of EvaluateAsRelocatable . The intended
110
+ // / This is a more aggressive variant of evaluateAsRelocatable . The intended
111
111
// / use is for when relocations are not available, like the .size directive.
112
112
bool evaluateAsValue (MCValue &Res, const MCAsmLayout &Layout) const ;
113
113
114
114
// / \brief Find the "associated section" for this expression, which is
115
115
// / currently defined as the absolute section for constants, or
116
116
// / otherwise the section associated with the first defined symbol in the
117
117
// / expression.
118
- MCSection *FindAssociatedSection () const ;
118
+ MCSection *findAssociatedSection () const ;
119
119
120
120
// / @}
121
121
};
@@ -136,7 +136,7 @@ class MCConstantExpr : public MCExpr {
136
136
// / \name Construction
137
137
// / @{
138
138
139
- static const MCConstantExpr *Create (int64_t Value, MCContext &Ctx);
139
+ static const MCConstantExpr *create (int64_t Value, MCContext &Ctx);
140
140
141
141
// / @}
142
142
// / \name Accessors
@@ -312,13 +312,13 @@ class MCSymbolRefExpr : public MCExpr {
312
312
// / \name Construction
313
313
// / @{
314
314
315
- static const MCSymbolRefExpr *Create (const MCSymbol *Symbol, MCContext &Ctx) {
316
- return MCSymbolRefExpr::Create (Symbol, VK_None, Ctx);
315
+ static const MCSymbolRefExpr *create (const MCSymbol *Symbol, MCContext &Ctx) {
316
+ return MCSymbolRefExpr::create (Symbol, VK_None, Ctx);
317
317
}
318
318
319
- static const MCSymbolRefExpr *Create (const MCSymbol *Symbol, VariantKind Kind,
319
+ static const MCSymbolRefExpr *create (const MCSymbol *Symbol, VariantKind Kind,
320
320
MCContext &Ctx);
321
- static const MCSymbolRefExpr *Create (StringRef Name, VariantKind Kind,
321
+ static const MCSymbolRefExpr *create (StringRef Name, VariantKind Kind,
322
322
MCContext &Ctx);
323
323
324
324
// / @}
@@ -369,19 +369,19 @@ class MCUnaryExpr : public MCExpr {
369
369
// / \name Construction
370
370
// / @{
371
371
372
- static const MCUnaryExpr *Create (Opcode Op, const MCExpr *Expr,
372
+ static const MCUnaryExpr *create (Opcode Op, const MCExpr *Expr,
373
373
MCContext &Ctx);
374
- static const MCUnaryExpr *CreateLNot (const MCExpr *Expr, MCContext &Ctx) {
375
- return Create (LNot, Expr, Ctx);
374
+ static const MCUnaryExpr *createLNot (const MCExpr *Expr, MCContext &Ctx) {
375
+ return create (LNot, Expr, Ctx);
376
376
}
377
- static const MCUnaryExpr *CreateMinus (const MCExpr *Expr, MCContext &Ctx) {
378
- return Create (Minus, Expr, Ctx);
377
+ static const MCUnaryExpr *createMinus (const MCExpr *Expr, MCContext &Ctx) {
378
+ return create (Minus, Expr, Ctx);
379
379
}
380
- static const MCUnaryExpr *CreateNot (const MCExpr *Expr, MCContext &Ctx) {
381
- return Create (Not, Expr, Ctx);
380
+ static const MCUnaryExpr *createNot (const MCExpr *Expr, MCContext &Ctx) {
381
+ return create (Not, Expr, Ctx);
382
382
}
383
- static const MCUnaryExpr *CreatePlus (const MCExpr *Expr, MCContext &Ctx) {
384
- return Create (Plus, Expr, Ctx);
383
+ static const MCUnaryExpr *createPlus (const MCExpr *Expr, MCContext &Ctx) {
384
+ return create (Plus, Expr, Ctx);
385
385
}
386
386
387
387
// / @}
@@ -441,83 +441,83 @@ class MCBinaryExpr : public MCExpr {
441
441
// / \name Construction
442
442
// / @{
443
443
444
- static const MCBinaryExpr *Create (Opcode Op, const MCExpr *LHS,
444
+ static const MCBinaryExpr *create (Opcode Op, const MCExpr *LHS,
445
445
const MCExpr *RHS, MCContext &Ctx);
446
- static const MCBinaryExpr *CreateAdd (const MCExpr *LHS, const MCExpr *RHS,
446
+ static const MCBinaryExpr *createAdd (const MCExpr *LHS, const MCExpr *RHS,
447
447
MCContext &Ctx) {
448
- return Create (Add, LHS, RHS, Ctx);
448
+ return create (Add, LHS, RHS, Ctx);
449
449
}
450
- static const MCBinaryExpr *CreateAnd (const MCExpr *LHS, const MCExpr *RHS,
450
+ static const MCBinaryExpr *createAnd (const MCExpr *LHS, const MCExpr *RHS,
451
451
MCContext &Ctx) {
452
- return Create (And, LHS, RHS, Ctx);
452
+ return create (And, LHS, RHS, Ctx);
453
453
}
454
- static const MCBinaryExpr *CreateDiv (const MCExpr *LHS, const MCExpr *RHS,
454
+ static const MCBinaryExpr *createDiv (const MCExpr *LHS, const MCExpr *RHS,
455
455
MCContext &Ctx) {
456
- return Create (Div, LHS, RHS, Ctx);
456
+ return create (Div, LHS, RHS, Ctx);
457
457
}
458
- static const MCBinaryExpr *CreateEQ (const MCExpr *LHS, const MCExpr *RHS,
458
+ static const MCBinaryExpr *createEQ (const MCExpr *LHS, const MCExpr *RHS,
459
459
MCContext &Ctx) {
460
- return Create (EQ, LHS, RHS, Ctx);
460
+ return create (EQ, LHS, RHS, Ctx);
461
461
}
462
- static const MCBinaryExpr *CreateGT (const MCExpr *LHS, const MCExpr *RHS,
462
+ static const MCBinaryExpr *createGT (const MCExpr *LHS, const MCExpr *RHS,
463
463
MCContext &Ctx) {
464
- return Create (GT, LHS, RHS, Ctx);
464
+ return create (GT, LHS, RHS, Ctx);
465
465
}
466
- static const MCBinaryExpr *CreateGTE (const MCExpr *LHS, const MCExpr *RHS,
466
+ static const MCBinaryExpr *createGTE (const MCExpr *LHS, const MCExpr *RHS,
467
467
MCContext &Ctx) {
468
- return Create (GTE, LHS, RHS, Ctx);
468
+ return create (GTE, LHS, RHS, Ctx);
469
469
}
470
- static const MCBinaryExpr *CreateLAnd (const MCExpr *LHS, const MCExpr *RHS,
470
+ static const MCBinaryExpr *createLAnd (const MCExpr *LHS, const MCExpr *RHS,
471
471
MCContext &Ctx) {
472
- return Create (LAnd, LHS, RHS, Ctx);
472
+ return create (LAnd, LHS, RHS, Ctx);
473
473
}
474
- static const MCBinaryExpr *CreateLOr (const MCExpr *LHS, const MCExpr *RHS,
474
+ static const MCBinaryExpr *createLOr (const MCExpr *LHS, const MCExpr *RHS,
475
475
MCContext &Ctx) {
476
- return Create (LOr, LHS, RHS, Ctx);
476
+ return create (LOr, LHS, RHS, Ctx);
477
477
}
478
- static const MCBinaryExpr *CreateLT (const MCExpr *LHS, const MCExpr *RHS,
478
+ static const MCBinaryExpr *createLT (const MCExpr *LHS, const MCExpr *RHS,
479
479
MCContext &Ctx) {
480
- return Create (LT, LHS, RHS, Ctx);
480
+ return create (LT, LHS, RHS, Ctx);
481
481
}
482
- static const MCBinaryExpr *CreateLTE (const MCExpr *LHS, const MCExpr *RHS,
482
+ static const MCBinaryExpr *createLTE (const MCExpr *LHS, const MCExpr *RHS,
483
483
MCContext &Ctx) {
484
- return Create (LTE, LHS, RHS, Ctx);
484
+ return create (LTE, LHS, RHS, Ctx);
485
485
}
486
- static const MCBinaryExpr *CreateMod (const MCExpr *LHS, const MCExpr *RHS,
486
+ static const MCBinaryExpr *createMod (const MCExpr *LHS, const MCExpr *RHS,
487
487
MCContext &Ctx) {
488
- return Create (Mod, LHS, RHS, Ctx);
488
+ return create (Mod, LHS, RHS, Ctx);
489
489
}
490
- static const MCBinaryExpr *CreateMul (const MCExpr *LHS, const MCExpr *RHS,
490
+ static const MCBinaryExpr *createMul (const MCExpr *LHS, const MCExpr *RHS,
491
491
MCContext &Ctx) {
492
- return Create (Mul, LHS, RHS, Ctx);
492
+ return create (Mul, LHS, RHS, Ctx);
493
493
}
494
- static const MCBinaryExpr *CreateNE (const MCExpr *LHS, const MCExpr *RHS,
494
+ static const MCBinaryExpr *createNE (const MCExpr *LHS, const MCExpr *RHS,
495
495
MCContext &Ctx) {
496
- return Create (NE, LHS, RHS, Ctx);
496
+ return create (NE, LHS, RHS, Ctx);
497
497
}
498
- static const MCBinaryExpr *CreateOr (const MCExpr *LHS, const MCExpr *RHS,
498
+ static const MCBinaryExpr *createOr (const MCExpr *LHS, const MCExpr *RHS,
499
499
MCContext &Ctx) {
500
- return Create (Or, LHS, RHS, Ctx);
500
+ return create (Or, LHS, RHS, Ctx);
501
501
}
502
- static const MCBinaryExpr *CreateShl (const MCExpr *LHS, const MCExpr *RHS,
502
+ static const MCBinaryExpr *createShl (const MCExpr *LHS, const MCExpr *RHS,
503
503
MCContext &Ctx) {
504
- return Create (Shl, LHS, RHS, Ctx);
504
+ return create (Shl, LHS, RHS, Ctx);
505
505
}
506
- static const MCBinaryExpr *CreateAShr (const MCExpr *LHS, const MCExpr *RHS,
506
+ static const MCBinaryExpr *createAShr (const MCExpr *LHS, const MCExpr *RHS,
507
507
MCContext &Ctx) {
508
- return Create (AShr, LHS, RHS, Ctx);
508
+ return create (AShr, LHS, RHS, Ctx);
509
509
}
510
- static const MCBinaryExpr *CreateLShr (const MCExpr *LHS, const MCExpr *RHS,
510
+ static const MCBinaryExpr *createLShr (const MCExpr *LHS, const MCExpr *RHS,
511
511
MCContext &Ctx) {
512
- return Create (LShr, LHS, RHS, Ctx);
512
+ return create (LShr, LHS, RHS, Ctx);
513
513
}
514
- static const MCBinaryExpr *CreateSub (const MCExpr *LHS, const MCExpr *RHS,
514
+ static const MCBinaryExpr *createSub (const MCExpr *LHS, const MCExpr *RHS,
515
515
MCContext &Ctx) {
516
- return Create (Sub, LHS, RHS, Ctx);
516
+ return create (Sub, LHS, RHS, Ctx);
517
517
}
518
- static const MCBinaryExpr *CreateXor (const MCExpr *LHS, const MCExpr *RHS,
518
+ static const MCBinaryExpr *createXor (const MCExpr *LHS, const MCExpr *RHS,
519
519
MCContext &Ctx) {
520
- return Create (Xor, LHS, RHS, Ctx);
520
+ return create (Xor, LHS, RHS, Ctx);
521
521
}
522
522
523
523
// / @}
@@ -552,12 +552,12 @@ class MCTargetExpr : public MCExpr {
552
552
virtual ~MCTargetExpr () {}
553
553
public:
554
554
555
- virtual void PrintImpl (raw_ostream &OS) const = 0;
556
- virtual bool EvaluateAsRelocatableImpl (MCValue &Res,
555
+ virtual void printImpl (raw_ostream &OS) const = 0;
556
+ virtual bool evaluateAsRelocatableImpl (MCValue &Res,
557
557
const MCAsmLayout *Layout,
558
558
const MCFixup *Fixup) const = 0;
559
559
virtual void visitUsedExpr (MCStreamer& Streamer) const = 0;
560
- virtual MCSection *FindAssociatedSection () const = 0;
560
+ virtual MCSection *findAssociatedSection () const = 0;
561
561
562
562
virtual void fixELFSymbolsInTLSFixups (MCAssembler &) const = 0;
563
563
0 commit comments