mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 23:48:49 +00:00
Reformat const for readability.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195522 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4d32e85359
commit
c918db1076
@ -1452,8 +1452,8 @@ void AsmPrinter::EmitLabelOffsetDifference(const MCSymbol *Hi, uint64_t Offset,
|
|||||||
/// where the size in bytes of the directive is specified by Size and Label
|
/// where the size in bytes of the directive is specified by Size and Label
|
||||||
/// specifies the label. This implicitly uses .set if it is available.
|
/// specifies the label. This implicitly uses .set if it is available.
|
||||||
void AsmPrinter::EmitLabelPlusOffset(const MCSymbol *Label, uint64_t Offset,
|
void AsmPrinter::EmitLabelPlusOffset(const MCSymbol *Label, uint64_t Offset,
|
||||||
unsigned Size, bool IsSectionRelative)
|
unsigned Size,
|
||||||
const {
|
bool IsSectionRelative) const {
|
||||||
if (MAI->needsDwarfSectionOffsetDirective() && IsSectionRelative) {
|
if (MAI->needsDwarfSectionOffsetDirective() && IsSectionRelative) {
|
||||||
OutStreamer.EmitCOFFSecRel32(Label);
|
OutStreamer.EmitCOFFSecRel32(Label);
|
||||||
return;
|
return;
|
||||||
@ -1462,14 +1462,12 @@ void AsmPrinter::EmitLabelPlusOffset(const MCSymbol *Label, uint64_t Offset,
|
|||||||
// Emit Label+Offset (or just Label if Offset is zero)
|
// Emit Label+Offset (or just Label if Offset is zero)
|
||||||
const MCExpr *Expr = MCSymbolRefExpr::Create(Label, OutContext);
|
const MCExpr *Expr = MCSymbolRefExpr::Create(Label, OutContext);
|
||||||
if (Offset)
|
if (Offset)
|
||||||
Expr = MCBinaryExpr::CreateAdd(Expr,
|
Expr = MCBinaryExpr::CreateAdd(
|
||||||
MCConstantExpr::Create(Offset, OutContext),
|
Expr, MCConstantExpr::Create(Offset, OutContext), OutContext);
|
||||||
OutContext);
|
|
||||||
|
|
||||||
OutStreamer.EmitValue(Expr, Size);
|
OutStreamer.EmitValue(Expr, Size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
// EmitAlignment - Emit an alignment directive to the specified power of
|
// EmitAlignment - Emit an alignment directive to the specified power of
|
||||||
|
Loading…
Reference in New Issue
Block a user