X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=docs%2FProgrammersManual.html;h=a9daba3ba93db94047a96da34c07a75d764dbb06;hp=571d4ba27aff5b73c5fd0f52e8d4371d42a16df4;hb=ab4456f10a72f3a7c73dac0e95578b9b7e4250b8;hpb=b011c66da4412327619352f2b4a625b574b592b1 diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index 571d4ba27af..a9daba3ba93 100644 --- a/docs/ProgrammersManual.html +++ b/docs/ProgrammersManual.html @@ -581,9 +581,9 @@ suite, it gives a report that looks like this:

-   7646 bytecodewriter  - Number of normal instructions
-    725 bytecodewriter  - Number of oversized instructions
- 129996 bytecodewriter  - Number of bytecode bytes written
+   7646 bitcodewriter   - Number of normal instructions
+    725 bitcodewriter   - Number of oversized instructions
+ 129996 bitcodewriter   - Number of bitcode bytes written
    2817 raise           - Number of insts DCEd or constprop'd
    3213 raise           - Number of cast-of-self removed
    5046 raise           - Number of expression trees converted
@@ -1225,7 +1225,7 @@ iterators in a densemap are invalidated whenever an insertion occurs, unlike
 map.  Also, because DenseMap allocates space for a large number of key/value
 pairs (it starts with 64 by default), it will waste a lot of space if your keys
 or values are large.  Finally, you must implement a partial specialization of
-DenseMapKeyInfo for the key that you want, if it isn't already supported.  This
+DenseMapInfo for the key that you want, if it isn't already supported.  This
 is required to tell DenseMap about two special marker values (which can never be
 inserted into the map) that it needs internally.

@@ -1886,19 +1886,16 @@ ReplaceInstWithValue, ReplaceInstWithInst -->
-

Deleting a global variable from a module is similar to deleting an -instruction. First, you must have a pointer to the global variable that you wish - to delete. Second, you must have a pointer to the module the global variable - belongs to. You use the pointer to the module to get its list of global - variables and then use the erase function to remove your global variable. +

Deleting a global variable from a module is just as easy as deleting an +Instruction. First, you must have a pointer to the global variable that you wish + to delete. You use this pointer to erase it from its parent, the module. For example:

 GlobalVariable *GV = .. ;
-Module *M = GV->getParent();
 
-M->getGlobaleList().erase(GV);
+GV->eraseFromParent();
 
@@ -1938,7 +1935,7 @@ recursive types and late resolution of opaque types makes the situation very difficult to handle. Fortunately, for the most part, our implementation makes most clients able to be completely unaware of the nasty internal details. The primary case where clients are exposed to the inner workings of it are when -building a recursive type. In addition to this case, the LLVM bytecode reader, +building a recursive type. In addition to this case, the LLVM bitcode reader, assembly parser, and linker also have to be aware of the inner workings of this system.