[llvm-commits] CVS: llvm/lib/Bytecode/Reader/ReadArchive.cpp ReadConst.cpp ReadInst.cpp Reader.cpp

Misha Brukman brukman at cs.uiuc.edu
Thu Sep 11 17:32:02 PDT 2003


Changes in directory llvm/lib/Bytecode/Reader:

ReadArchive.cpp updated: 1.4 -> 1.5
ReadConst.cpp updated: 1.51 -> 1.52
ReadInst.cpp updated: 1.50 -> 1.51
Reader.cpp updated: 1.60 -> 1.61

---
Log message:

Fixed spelling and grammar.


---
Diffs of the changes:

Index: llvm/lib/Bytecode/Reader/ReadArchive.cpp
diff -u llvm/lib/Bytecode/Reader/ReadArchive.cpp:1.4 llvm/lib/Bytecode/Reader/ReadArchive.cpp:1.5
--- llvm/lib/Bytecode/Reader/ReadArchive.cpp:1.4	Mon Jun 30 16:58:40 2003
+++ llvm/lib/Bytecode/Reader/ReadArchive.cpp	Thu Sep 11 17:31:21 2003
@@ -130,7 +130,7 @@
 }
 
 
-// ReadArchiveFile - Read bytecode files from the specfied .a file, returning
+// ReadArchiveFile - Read bytecode files from the specified .a file, returning
 // true on error, or false on success.  This does not support reading files from
 // standard input.
 //


Index: llvm/lib/Bytecode/Reader/ReadConst.cpp
diff -u llvm/lib/Bytecode/Reader/ReadConst.cpp:1.51 llvm/lib/Bytecode/Reader/ReadConst.cpp:1.52
--- llvm/lib/Bytecode/Reader/ReadConst.cpp:1.51	Wed Sep  3 15:25:27 2003
+++ llvm/lib/Bytecode/Reader/ReadConst.cpp	Thu Sep 11 17:31:21 2003
@@ -4,7 +4,7 @@
 // constant pools.
 // 
 // Note that this library should be as fast as possible, reentrant, and 
-// threadsafe!!
+// thread-safe!!
 //
 //===----------------------------------------------------------------------===//
 
@@ -113,12 +113,12 @@
 
 
 
-// parseTypeConstants - We have to use this wierd code to handle recursive
+// parseTypeConstants - We have to use this weird code to handle recursive
 // types.  We know that recursive types will only reference the current slab of
 // values in the type plane, but they can forward reference types before they
 // have been read.  For example, Type #0 might be '{ Ty#1 }' and Type #1 might
 // be 'Ty#0*'.  When reading Type #0, type number one doesn't exist.  To fix
-// this ugly problem, we pesimistically insert an opaque type for each type we
+// this ugly problem, we pessimistically insert an opaque type for each type we
 // are about to read.  This means that forward references will resolve to
 // something and when we reread the type later, we can replace the opaque type
 // with a new resolved concrete type.
@@ -327,7 +327,7 @@
         if (!(GV = dyn_cast<GlobalValue>(Val))) return true;
         BCR_TRACE(5, "Value Found in ValueTable!\n");
       } else if (RevisionNum > 0) {
-        // Revision #0 could have forward references to globals that were wierd.
+        // Revision #0 could have forward references to globals that were weird.
         // We got rid of this in subsequent revs.
         return true;
       } else {         // Nope... find or create a forward ref. for it


Index: llvm/lib/Bytecode/Reader/ReadInst.cpp
diff -u llvm/lib/Bytecode/Reader/ReadInst.cpp:1.50 llvm/lib/Bytecode/Reader/ReadInst.cpp:1.51
--- llvm/lib/Bytecode/Reader/ReadInst.cpp:1.50	Mon Sep  8 14:43:46 2003
+++ llvm/lib/Bytecode/Reader/ReadInst.cpp	Thu Sep 11 17:31:21 2003
@@ -204,7 +204,7 @@
       new SwitchInst(getValue(Raw.Ty, Raw.Arg1), 
                      cast<BasicBlock>(getValue(Type::LabelTy, Raw.Arg2)));
     Res = I;
-    if (Raw.NumOperands < 3) return false;  // No destinations?  Wierd.
+    if (Raw.NumOperands < 3) return false;  // No destinations?  Weird.
 
     if (Raw.NumOperands == 3 || Raw.VarArgs->size() & 1) {
       std::cerr << "Switch statement with odd number of arguments!\n";


Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.60 llvm/lib/Bytecode/Reader/Reader.cpp:1.61
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.60	Mon Sep  8 13:04:16 2003
+++ llvm/lib/Bytecode/Reader/Reader.cpp	Thu Sep 11 17:31:21 2003
@@ -436,7 +436,7 @@
     BCR_TRACE(2, "Global Variable of type: " << *Ty << "\n");
     ResolveReferencesToValue(GV, (unsigned)DestSlot);
 
-    if (VarType & 2) { // Does it have an initalizer?
+    if (VarType & 2) { // Does it have an initializer?
       unsigned InitSlot;
       if (read_vbr(Buf, End, InitSlot)) return true;
       GlobalInits.push_back(std::make_pair(GV, InitSlot));





More information about the llvm-commits mailing list