From c7d1d8256ee319bb6fe70f112a502db1e06dbb7e Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 1 Nov 2004 09:16:30 +0000 Subject: Attempt HTML 4.01 Strict compliance. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17399 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ProgrammersManual.html | 76 +++++++++++++++++++++++---------------------- 1 file changed, 39 insertions(+), 37 deletions(-) (limited to 'docs/ProgrammersManual.html') diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index 5d10882..7c6bd15 100644 --- a/docs/ProgrammersManual.html +++ b/docs/ProgrammersManual.html @@ -1771,42 +1771,43 @@ types.

  • isLosslesslyConvertableTo (const Type *Ty) const: Return true if this type can be converted to 'Ty' without any reinterpretation of bits. For example, uint to int or one pointer type to another.
  • + + -
    -

    Derived Types

    - + +
    + Important Derived Types +
    +
    + -
    @@ -1946,32 +1947,33 @@ three idioms worth pointing out:

    UnitsIteratorIdiom Planes Of name/Value mapsPI -
    +    
    
     for (SymbolTable::plane_const_iterator PI = ST.plane_begin(),
          PE = ST.plane_end(); PI != PE; ++PI ) {
       PI->first // This is the Type* of the plane
       PI->second // This is the SymbolTable::ValueMap of name/Value pairs
    -    
    +
    All name/Type PairsTI -
    +    
    
     for (SymbolTable::type_const_iterator TI = ST.type_begin(),
          TE = ST.type_end(); TI != TE; ++TI )
       TI->first  // This is the name of the type
       TI->second // This is the Type* value associated with the name
    -    
    +
    name/Value pairs in a planeVI -
    +    
    
     for (SymbolTable::value_const_iterator VI = ST.value_begin(SomeType),
          VE = ST.value_end(SomeType); VI != VE; ++VI )
       VI->first  // This is the name of the Value
       VI->second // This is the Value* value associated with the name
    -    
    +
    +

    Using the recommended iterator names and idioms will help you avoid making mistakes. Of particular note, make sure that whenever you use value_begin(SomeType) that you always compare the resulting iterator -- cgit v1.1