mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-23 05:29:23 +00:00
Made CFLAA agree with clang-format. NFC.
So everyone's lives are easier in the future git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232293 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ca7e7b0212
commit
2546837621
@ -78,7 +78,7 @@ static Optional<Value *> getTargetValue(Instruction *);
|
||||
static bool hasUsefulEdges(Instruction *);
|
||||
|
||||
const StratifiedIndex StratifiedLink::SetSentinel =
|
||||
std::numeric_limits<StratifiedIndex>::max();
|
||||
std::numeric_limits<StratifiedIndex>::max();
|
||||
|
||||
namespace {
|
||||
// StratifiedInfo Attribute things.
|
||||
@ -147,9 +147,8 @@ struct FunctionInfo {
|
||||
// Lots of functions have < 4 returns. Adjust as necessary.
|
||||
SmallVector<Value *, 4> ReturnedValues;
|
||||
|
||||
FunctionInfo(StratifiedSets<Value *> &&S,
|
||||
SmallVector<Value *, 4> &&RV)
|
||||
: Sets(std::move(S)), ReturnedValues(std::move(RV)) {}
|
||||
FunctionInfo(StratifiedSets<Value *> &&S, SmallVector<Value *, 4> &&RV)
|
||||
: Sets(std::move(S)), ReturnedValues(std::move(RV)) {}
|
||||
};
|
||||
|
||||
struct CFLAliasAnalysis;
|
||||
@ -281,8 +280,8 @@ public:
|
||||
}
|
||||
|
||||
void visitCastInst(CastInst &Inst) {
|
||||
Output.push_back(Edge(&Inst, Inst.getOperand(0), EdgeType::Assign,
|
||||
AttrNone));
|
||||
Output.push_back(
|
||||
Edge(&Inst, Inst.getOperand(0), EdgeType::Assign, AttrNone));
|
||||
}
|
||||
|
||||
void visitBinaryOperator(BinaryOperator &Inst) {
|
||||
@ -446,7 +445,7 @@ public:
|
||||
}
|
||||
if (AddEdge)
|
||||
Output.push_back(Edge(FuncValue, ArgVal, EdgeType::Assign,
|
||||
StratifiedAttrs().flip()));
|
||||
StratifiedAttrs().flip()));
|
||||
}
|
||||
|
||||
if (Parameters.size() != Arguments.size())
|
||||
@ -588,8 +587,7 @@ private:
|
||||
EdgeTypeT Weight;
|
||||
Node Other;
|
||||
|
||||
Edge(const EdgeTypeT &W, const Node &N)
|
||||
: Weight(W), Other(N) {}
|
||||
Edge(const EdgeTypeT &W, const Node &N) : Weight(W), Other(N) {}
|
||||
|
||||
bool operator==(const Edge &E) const {
|
||||
return Weight == E.Weight && Other == E.Other;
|
||||
|
Loading…
x
Reference in New Issue
Block a user