[llvm] r274335 - 80-column and comment fixups.
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 30 23:07:32 PDT 2016
Author: echristo
Date: Fri Jul 1 01:07:31 2016
New Revision: 274335
URL: http://llvm.org/viewvc/llvm-project?rev=274335&view=rev
Log:
80-column and comment fixups.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=274335&r1=274334&r2=274335&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Fri Jul 1 01:07:31 2016
@@ -379,9 +379,10 @@ void AsmPrinter::EmitGlobalVariable(cons
MCSymbol *GVSym = getSymbol(GV);
MCSymbol *EmittedSym = GVSym;
- // getOrCreateEmuTLSControlSym only creates the symbol with name and default attributes.
- // GV's or GVSym's attributes will be used for the EmittedSym.
+ // getOrCreateEmuTLSControlSym only creates the symbol with name and default
+ // attributes.
+ // GV's or GVSym's attributes will be used for the EmittedSym.
EmitVisibility(EmittedSym, GV->getVisibility(), !GV->isDeclaration());
if (!GV->hasInitializer()) // External globals require no extra code.
@@ -1005,8 +1006,9 @@ static bool isGOTEquivalentCandidate(con
// Global GOT equivalents are unnamed private globals with a constant
// pointer initializer to another global symbol. They must point to a
// GlobalVariable or Function, i.e., as GlobalValue.
- if (!GV->hasGlobalUnnamedAddr() || !GV->hasInitializer() || !GV->isConstant() ||
- !GV->isDiscardableIfUnused() || !dyn_cast<GlobalValue>(GV->getOperand(0)))
+ if (!GV->hasGlobalUnnamedAddr() || !GV->hasInitializer() ||
+ !GV->isConstant() || !GV->isDiscardableIfUnused() ||
+ !dyn_cast<GlobalValue>(GV->getOperand(0)))
return false;
// To be a got equivalent, at least one of its users need to be a constant
@@ -1615,7 +1617,8 @@ void AsmPrinter::EmitXXStructorList(cons
S.Priority = Priority->getLimitedValue(65535);
S.Func = CS->getOperand(1);
if (ETy->getNumElements() == 3 && !CS->getOperand(2)->isNullValue())
- S.ComdatKey = dyn_cast<GlobalValue>(CS->getOperand(2)->stripPointerCasts());
+ S.ComdatKey =
+ dyn_cast<GlobalValue>(CS->getOperand(2)->stripPointerCasts());
}
// Emit the function pointers in the target-specific order
More information about the llvm-commits
mailing list