mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +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
|
||||
/// specifies the label. This implicitly uses .set if it is available.
|
||||
void AsmPrinter::EmitLabelPlusOffset(const MCSymbol *Label, uint64_t Offset,
|
||||
unsigned Size, bool IsSectionRelative)
|
||||
const {
|
||||
unsigned Size,
|
||||
bool IsSectionRelative) const {
|
||||
if (MAI->needsDwarfSectionOffsetDirective() && IsSectionRelative) {
|
||||
OutStreamer.EmitCOFFSecRel32(Label);
|
||||
return;
|
||||
@ -1462,14 +1462,12 @@ void AsmPrinter::EmitLabelPlusOffset(const MCSymbol *Label, uint64_t Offset,
|
||||
// Emit Label+Offset (or just Label if Offset is zero)
|
||||
const MCExpr *Expr = MCSymbolRefExpr::Create(Label, OutContext);
|
||||
if (Offset)
|
||||
Expr = MCBinaryExpr::CreateAdd(Expr,
|
||||
MCConstantExpr::Create(Offset, OutContext),
|
||||
OutContext);
|
||||
Expr = MCBinaryExpr::CreateAdd(
|
||||
Expr, MCConstantExpr::Create(Offset, OutContext), OutContext);
|
||||
|
||||
OutStreamer.EmitValue(Expr, Size);
|
||||
}
|
||||
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// EmitAlignment - Emit an alignment directive to the specified power of
|
||||
|
Loading…
Reference in New Issue
Block a user