diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index 839db7d454c..7567ecc0953 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1766,7 +1766,7 @@ class MemIntrinsicSDNode : public MemSDNode { virtual void ANCHOR(); // Out-of-line virtual method to give class a home. bool ReadMem; // Intrinsic reads memory bool WriteMem; // Intrinsic writes memory - public: +public: MemIntrinsicSDNode(unsigned Opc, SDVTList VTs, const SDValue *Ops, unsigned NumOps, MVT MemoryVT, const Value *srcValue, int SVO, diff --git a/lib/CodeGen/SelectionDAG/LatencyPriorityQueue.h b/lib/CodeGen/SelectionDAG/LatencyPriorityQueue.h index f04d2ede5ac..5b2b02b49d7 100644 --- a/lib/CodeGen/SelectionDAG/LatencyPriorityQueue.h +++ b/lib/CodeGen/SelectionDAG/LatencyPriorityQueue.h @@ -45,7 +45,7 @@ namespace llvm { std::vector NumNodesSolelyBlocking; PriorityQueue, latency_sort> Queue; -public: + public: LatencyPriorityQueue() : Queue(latency_sort(this)) { } @@ -113,7 +113,7 @@ public: // the node available. void ScheduledNode(SUnit *Node); -private: + private: void CalculatePriorities(); int CalcLatency(const SUnit &SU); void AdjustPriorityOfUnscheduledPreds(SUnit *SU);