diff options
Diffstat (limited to 'docs/ProgrammersManual.rst')
-rw-r--r-- | docs/ProgrammersManual.rst | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/docs/ProgrammersManual.rst b/docs/ProgrammersManual.rst index 2c7e4a9..6a4c22a 100644 --- a/docs/ProgrammersManual.rst +++ b/docs/ProgrammersManual.rst @@ -940,7 +940,7 @@ There are a variety of ways to pass around and use strings in C and C++, and LLVM adds a few new options to choose from. Pick the first option on this list that will do what you need, they are ordered according to their relative cost. -Note that is is generally preferred to *not* pass strings around as ``const +Note that it is generally preferred to *not* pass strings around as ``const char*``'s. These have a number of problems, including the fact that they cannot represent embedded nul ("\0") characters, and do not have a length available efficiently. The general replacement for '``const char*``' is @@ -1687,8 +1687,8 @@ they will automatically convert to a ptr-to-instance type whenever they need to. Instead of derferencing the iterator and then taking the address of the result, you can simply assign the iterator to the proper pointer type and you get the dereference and address-of operation as a result of the assignment (behind the -scenes, this is a result of overloading casting mechanisms). Thus the last line -of the last example, +scenes, this is a result of overloading casting mechanisms). Thus the second +line of the last example, .. code-block:: c++ @@ -2582,8 +2582,9 @@ doxygen info: `Type Clases <http://llvm.org/doxygen/classllvm_1_1Type.html>`_ The Core LLVM classes are the primary means of representing the program being inspected or transformed. The core LLVM classes are defined in header files in -the ``include/llvm/`` directory, and implemented in the ``lib/VMCore`` -directory. +the ``include/llvm/IR`` directory, and implemented in the ``lib/IR`` +directory. It's worth noting that, for historical reasons, this library is +called ``libLLVMCore.so``, not ``libLLVMIR.so`` as you might expect. .. _Type: @@ -2651,7 +2652,7 @@ Important Derived Types Subclass of SequentialType for vector types. A vector type is similar to an ArrayType but is distinguished because it is a first class type whereas ArrayType is not. Vector types are used for vector operations and are usually - small vectors of of an integer or floating point type. + small vectors of an integer or floating point type. ``StructType`` Subclass of DerivedTypes for struct types. |