mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Reformat.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239691 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3a36996b73
commit
82b72bed60
@ -899,11 +899,9 @@ void AsmPrinter::EmitFunctionBody() {
|
|||||||
if (MAI->hasDotTypeDotSizeDirective()) {
|
if (MAI->hasDotTypeDotSizeDirective()) {
|
||||||
// We can get the size as difference between the function label and the
|
// We can get the size as difference between the function label and the
|
||||||
// temp label.
|
// temp label.
|
||||||
const MCExpr *SizeExp =
|
const MCExpr *SizeExp = MCBinaryExpr::createSub(
|
||||||
MCBinaryExpr::createSub(MCSymbolRefExpr::create(CurrentFnEnd, OutContext),
|
MCSymbolRefExpr::create(CurrentFnEnd, OutContext),
|
||||||
MCSymbolRefExpr::create(CurrentFnSymForSize,
|
MCSymbolRefExpr::create(CurrentFnSymForSize, OutContext), OutContext);
|
||||||
OutContext),
|
|
||||||
OutContext);
|
|
||||||
OutStreamer->emitELFSize(cast<MCSymbolELF>(CurrentFnSym), SizeExp);
|
OutStreamer->emitELFSize(cast<MCSymbolELF>(CurrentFnSym), SizeExp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user