aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-04-26 19:40:56 +0000
committerDan Gohman <gohman@apple.com>2007-04-26 19:40:56 +0000
commitedc1d159841fd279d58177bfd6ac4bc1f616d91a (patch)
tree236076d08481f179732565e74a1d78ff97a052e2
parentb7522c7a7ccc8c16b2306139d557aeebec6520da (diff)
Fix a typo in a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36485 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetData.h2
-rw-r--r--lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h
index 54b2fa73c9..4e330e862d 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 e005468150..08292bb6e4 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