From bda4470e764ade360a696019bfa119f4d42b61f2 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 26 Apr 2007 19:40:56 +0000 Subject: [PATCH] Fix a typo in a comment. llvm-svn: 36485 --- include/llvm/Target/TargetData.h | 2 +- lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h index 54b2fa73c98..4e330e862db 100644 --- a/include/llvm/Target/TargetData.h +++ b/include/llvm/Target/TargetData.h @@ -179,7 +179,7 @@ public: /// const Type *getIntPtrType() const; - /// getIndexOffset - return the offset from the beginning of the type for the + /// getIndexedOffset - return the offset from the beginning of the type for the /// specified indices. This is used to implement getelementptr. /// uint64_t getIndexedOffset(const Type *Ty, diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp index e0054681507..08292bb6e4d 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp @@ -634,7 +634,7 @@ bool bu_ls_rr_sort::operator()(const SUnit *left, const SUnit *right) const { if (LPriority > RPriority) return true; else if (LPriority == RPriority) { - // Try schedule def + use closer whne Sethi-Ullman numbers are the same. + // Try schedule def + use closer when Sethi-Ullman numbers are the same. // e.g. // t1 = op t2, c1 // t3 = op t4, c2