From: Dan Gohman Date: Thu, 26 Apr 2007 19:40:56 +0000 (+0000) Subject: Fix a typo in a comment. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=edc1d159841fd279d58177bfd6ac4bc1f616d91a;p=oota-llvm.git Fix a typo in a comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36485 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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