aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-05-29 05:00:14 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-05-29 05:00:14 +0000
commite5841daa7901154a018a93f863347e2e77f64abe (patch)
treeeb3029e72087ccde4cd5a25e5e83368f18f26e93
parent25f36306ffabc09bf625cf03ef7733b8ed35c05b (diff)
downloadexternal_llvm-e5841daa7901154a018a93f863347e2e77f64abe.zip
external_llvm-e5841daa7901154a018a93f863347e2e77f64abe.tar.gz
external_llvm-e5841daa7901154a018a93f863347e2e77f64abe.tar.bz2
Fixed misspelling and broke a line that was wrapping.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6391 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetRegInfo.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetRegInfo.h b/include/llvm/Target/TargetRegInfo.h
index a4b8547..69dcadb 100644
--- a/include/llvm/Target/TargetRegInfo.h
+++ b/include/llvm/Target/TargetRegInfo.h
@@ -178,7 +178,7 @@ public:
// a regId in a register class to a common Id, or vice versa,
// we use the folloing two methods.
//
- // Thsi method converts from class reg. number to unified register number.
+ // This method converts from class reg. number to unified register number.
int getUnifiedRegNum(unsigned regClassID, int reg) const {
if (reg == getInvalidRegNum()) { return getInvalidRegNum(); }
assert(regClassID < getNumOfRegClasses() && "Invalid register class");
@@ -195,7 +195,8 @@ public:
int totalRegs = 0, rcid = 0, NC = getNumOfRegClasses();
while (rcid < NC &&
- uRegNum >= totalRegs + (int) MachineRegClassArr[rcid]->getNumOfAllRegs()) {
+ uRegNum>= totalRegs+(int)MachineRegClassArr[rcid]->getNumOfAllRegs())
+ {
totalRegs += MachineRegClassArr[rcid]->getNumOfAllRegs();
rcid++;
}