ccgexprs.nim: fewer newlines
This commit is contained in:
parent
07eca7decd
commit
869007b005
1 changed files with 0 additions and 4 deletions
|
|
@ -661,12 +661,10 @@ proc unaryArith(p: BProc, e: PNode, d: var TLoc, op: TMagic) =
|
||||||
initLocExpr(p, e.sons[1], a)
|
initLocExpr(p, e.sons[1], a)
|
||||||
t = skipTypes(e.typ, abstractRange)
|
t = skipTypes(e.typ, abstractRange)
|
||||||
|
|
||||||
|
|
||||||
template applyFormat(frmt: untyped) =
|
template applyFormat(frmt: untyped) =
|
||||||
putIntoDest(p, d, e, frmt % [rdLoc(a), rope(getSize(p.config, t) * 8),
|
putIntoDest(p, d, e, frmt % [rdLoc(a), rope(getSize(p.config, t) * 8),
|
||||||
getSimpleTypeDesc(p.module, e.typ)])
|
getSimpleTypeDesc(p.module, e.typ)])
|
||||||
|
|
||||||
|
|
||||||
case op
|
case op
|
||||||
of mNot:
|
of mNot:
|
||||||
applyFormat("!($1)")
|
applyFormat("!($1)")
|
||||||
|
|
@ -710,8 +708,6 @@ proc unaryArith(p: BProc, e: PNode, d: var TLoc, op: TMagic) =
|
||||||
else:
|
else:
|
||||||
assert false, $op
|
assert false, $op
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
proc isCppRef(p: BProc; typ: PType): bool {.inline.} =
|
proc isCppRef(p: BProc; typ: PType): bool {.inline.} =
|
||||||
result = p.module.compileToCpp and
|
result = p.module.compileToCpp and
|
||||||
skipTypes(typ, abstractInstOwned).kind == tyVar and
|
skipTypes(typ, abstractInstOwned).kind == tyVar and
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue