mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
Homogenize whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81156 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e0ae2b2503
commit
29ef6599ee
@ -545,6 +545,7 @@ static bool VerifyAttributeCount(const AttrListPtr &Attrs, unsigned Params) {
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// visitFunction - Verify that a function is ok.
|
// visitFunction - Verify that a function is ok.
|
||||||
//
|
//
|
||||||
void Verifier::visitFunction(Function &F) {
|
void Verifier::visitFunction(Function &F) {
|
||||||
@ -623,7 +624,6 @@ void Verifier::visitFunction(Function &F) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// verifyBasicBlock - Verify that a basic block is well formed...
|
// verifyBasicBlock - Verify that a basic block is well formed...
|
||||||
//
|
//
|
||||||
void Verifier::visitBasicBlock(BasicBlock &BB) {
|
void Verifier::visitBasicBlock(BasicBlock &BB) {
|
||||||
@ -640,7 +640,6 @@ void Verifier::visitBasicBlock(BasicBlock &BB) {
|
|||||||
std::sort(Preds.begin(), Preds.end());
|
std::sort(Preds.begin(), Preds.end());
|
||||||
PHINode *PN;
|
PHINode *PN;
|
||||||
for (BasicBlock::iterator I = BB.begin(); (PN = dyn_cast<PHINode>(I));++I) {
|
for (BasicBlock::iterator I = BB.begin(); (PN = dyn_cast<PHINode>(I));++I) {
|
||||||
|
|
||||||
// Ensure that PHI nodes have at least one entry!
|
// Ensure that PHI nodes have at least one entry!
|
||||||
Assert1(PN->getNumIncomingValues() != 0,
|
Assert1(PN->getNumIncomingValues() != 0,
|
||||||
"PHI nodes must have at least one entry. If the block is dead, "
|
"PHI nodes must have at least one entry. If the block is dead, "
|
||||||
@ -743,7 +742,6 @@ void Verifier::visitSelectInst(SelectInst &SI) {
|
|||||||
visitInstruction(SI);
|
visitInstruction(SI);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// visitUserOp1 - User defined operators shouldn't live beyond the lifetime of
|
/// visitUserOp1 - User defined operators shouldn't live beyond the lifetime of
|
||||||
/// a pass, if any exist, it's an error.
|
/// a pass, if any exist, it's an error.
|
||||||
///
|
///
|
||||||
@ -1278,7 +1276,6 @@ void Verifier::visitInstruction(Instruction &I) {
|
|||||||
if (isa<TerminatorInst>(I))
|
if (isa<TerminatorInst>(I))
|
||||||
Assert1(BB->getTerminator() == &I, "Terminator not at end of block!", &I);
|
Assert1(BB->getTerminator() == &I, "Terminator not at end of block!", &I);
|
||||||
|
|
||||||
|
|
||||||
// Check that void typed values don't have names
|
// Check that void typed values don't have names
|
||||||
Assert1(I.getType() != Type::getVoidTy(I.getContext()) || !I.hasName(),
|
Assert1(I.getType() != Type::getVoidTy(I.getContext()) || !I.hasName(),
|
||||||
"Instruction has a name, but provides a void value!", &I);
|
"Instruction has a name, but provides a void value!", &I);
|
||||||
@ -1301,7 +1298,6 @@ void Verifier::visitInstruction(Instruction &I) {
|
|||||||
Assert1(PTy->getElementType() != Type::getMetadataTy(I.getContext()),
|
Assert1(PTy->getElementType() != Type::getMetadataTy(I.getContext()),
|
||||||
"Instructions may not produce pointer to metadata.", &I);
|
"Instructions may not produce pointer to metadata.", &I);
|
||||||
|
|
||||||
|
|
||||||
// Check that all uses of the instruction, if they are instructions
|
// Check that all uses of the instruction, if they are instructions
|
||||||
// themselves, actually have parent basic blocks. If the use is not an
|
// themselves, actually have parent basic blocks. If the use is not an
|
||||||
// instruction, it is an error!
|
// instruction, it is an error!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user