Fix a typo in a comment.
authorDan Gohman <gohman@apple.com>
Thu, 26 Apr 2007 19:40:56 +0000 (19:40 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 26 Apr 2007 19:40:56 +0000 (19:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36485 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetData.h
lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp

index 54b2fa73c98ba833feb567df415aa8b2a0edab3d..4e330e862dba7364d9d7e270d87d19677427faef 100644 (file)
@@ -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,
index e0054681507a3b763822e572231ec2f925ff7f7b..08292bb6e4dd6a1509669aaa2b213fb1526574ae 100644 (file)
@@ -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