diff options
| author | Bill Wendling <isanbard@gmail.com> | 2010-12-10 22:54:30 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2010-12-10 22:54:30 +0000 |
| commit | 73a48d83b20ea93cc97419726ffff26d21791627 (patch) | |
| tree | 903c0026c9cbaeacc40e681ff090a409c80c6959 /llvm/utils/TableGen/Record.cpp | |
| parent | 7cdd2328959934326d0ee74a5b634c70c4e96bab (diff) | |
| download | bcm5719-llvm-73a48d83b20ea93cc97419726ffff26d21791627.tar.gz bcm5719-llvm-73a48d83b20ea93cc97419726ffff26d21791627.zip | |
Get rid of ellipses.
llvm-svn: 121589
Diffstat (limited to 'llvm/utils/TableGen/Record.cpp')
| -rw-r--r-- | llvm/utils/TableGen/Record.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/utils/TableGen/Record.cpp b/llvm/utils/TableGen/Record.cpp index dae0c391be6..83db66d14e3 100644 --- a/llvm/utils/TableGen/Record.cpp +++ b/llvm/utils/TableGen/Record.cpp @@ -59,18 +59,18 @@ Init *BitsRecTy::convertValue(UnsetInit *UI) { } Init *BitsRecTy::convertValue(BitInit *UI) { - if (Size != 1) return 0; // Can only convert single bit... + if (Size != 1) return 0; // Can only convert single bit. BitsInit *Ret = new BitsInit(1); Ret->setBit(0, UI); return Ret; } // convertValue from Int initializer to bits type: Split the integer up into the -// appropriate bits... +// appropriate bits. // Init *BitsRecTy::convertValue(IntInit *II) { int64_t Value = II->getValue(); - // Make sure this bitfield is large enough to hold the integer value... + // Make sure this bitfield is large enough to hold the integer value. if (Value >= 0) { if (Value & ~((1LL << Size)-1)) return 0; @@ -88,7 +88,7 @@ Init *BitsRecTy::convertValue(IntInit *II) { Init *BitsRecTy::convertValue(BitsInit *BI) { // If the number of bits is right, return it. Otherwise we need to expand or - // truncate... + // truncate. if (BI->getNumBits() == Size) return BI; return 0; } @@ -966,7 +966,7 @@ RecTy *TypedInit::getFieldType(const std::string &FieldName) const { Init *TypedInit::convertInitializerBitRange(const std::vector<unsigned> &Bits) { BitsRecTy *T = dynamic_cast<BitsRecTy*>(getType()); - if (T == 0) return 0; // Cannot subscript a non-bits variable... + if (T == 0) return 0; // Cannot subscript a non-bits variable. unsigned NumBits = T->getNumBits(); BitsInit *BI = new BitsInit(Bits.size()); @@ -982,7 +982,7 @@ Init *TypedInit::convertInitializerBitRange(const std::vector<unsigned> &Bits) { Init *TypedInit::convertInitListSlice(const std::vector<unsigned> &Elements) { ListRecTy *T = dynamic_cast<ListRecTy*>(getType()); - if (T == 0) return 0; // Cannot subscript a non-list variable... + if (T == 0) return 0; // Cannot subscript a non-list variable. if (Elements.size() == 1) return new VarListElementInit(this, Elements[0]); @@ -1135,7 +1135,7 @@ Init *FieldInit::resolveBitReference(Record &R, const RecordVal *RV, assert(Bit < BI->getNumBits() && "Bit reference out of range!"); Init *B = BI->getBit(Bit); - if (dynamic_cast<BitInit*>(B)) // If the bit is set... + if (dynamic_cast<BitInit*>(B)) // If the bit is set. return B; // Replace the VarBitInit with it. } return 0; |

