[llvm-commits] CVS: llvm/include/llvm/Assembly/AsmAnnotationWriter.h CWriter.h CachedWriter.h Parser.h PrintModulePass.h Writer.h

Brian Gaeke gaeke at cs.uiuc.edu
Tue Nov 11 16:46:11 PST 2003


Changes in directory llvm/include/llvm/Assembly:

AsmAnnotationWriter.h updated: 1.1 -> 1.2
CWriter.h updated: 1.4 -> 1.5
CachedWriter.h updated: 1.11 -> 1.12
Parser.h updated: 1.7 -> 1.8
PrintModulePass.h updated: 1.14 -> 1.15
Writer.h updated: 1.26 -> 1.27

---
Log message:

Put all LLVM code into the llvm namespace, as per bug 109.

---
Diffs of the changes:  (+27 -0)

Index: llvm/include/llvm/Assembly/AsmAnnotationWriter.h
diff -u llvm/include/llvm/Assembly/AsmAnnotationWriter.h:1.1 llvm/include/llvm/Assembly/AsmAnnotationWriter.h:1.2
--- llvm/include/llvm/Assembly/AsmAnnotationWriter.h:1.1	Thu Oct 30 17:39:52 2003
+++ llvm/include/llvm/Assembly/AsmAnnotationWriter.h	Tue Nov 11 16:41:31 2003
@@ -18,6 +18,9 @@
 #define LLVM_ASSEMBLY_ASMANNOTATIONWRITER_H
 
 #include <iosfwd>
+
+namespace llvm {
+
 class Function;
 class BasicBlock;
 class Instruction;
@@ -36,5 +39,7 @@
   // before an instruction is emitted.
   virtual void emitInstructionAnnot(const Instruction *I, std::ostream &OS) {}
 };
+
+} // End llvm namespace
 
 #endif


Index: llvm/include/llvm/Assembly/CWriter.h
diff -u llvm/include/llvm/Assembly/CWriter.h:1.4 llvm/include/llvm/Assembly/CWriter.h:1.5
--- llvm/include/llvm/Assembly/CWriter.h:1.4	Mon Oct 20 15:19:19 2003
+++ llvm/include/llvm/Assembly/CWriter.h	Tue Nov 11 16:41:31 2003
@@ -16,7 +16,12 @@
 #define LLVM_ASSEMBLY_CWRITER_H
 
 #include <iosfwd>
+
+namespace llvm {
+
 class Pass;
 Pass *createWriteToCPass(std::ostream &o);
+
+} // End llvm namespace
 
 #endif


Index: llvm/include/llvm/Assembly/CachedWriter.h
diff -u llvm/include/llvm/Assembly/CachedWriter.h:1.11 llvm/include/llvm/Assembly/CachedWriter.h:1.12
--- llvm/include/llvm/Assembly/CachedWriter.h:1.11	Mon Oct 20 15:19:19 2003
+++ llvm/include/llvm/Assembly/CachedWriter.h	Tue Nov 11 16:41:31 2003
@@ -20,6 +20,8 @@
 #include "llvm/Value.h"
 #include <iostream>
 
+namespace llvm {
+
 class Module;
 class PointerType;
 class SlotCalculator;
@@ -81,5 +83,7 @@
     return *this;
   }
 };
+
+} // End llvm namespace
 
 #endif


Index: llvm/include/llvm/Assembly/Parser.h
diff -u llvm/include/llvm/Assembly/Parser.h:1.7 llvm/include/llvm/Assembly/Parser.h:1.8
--- llvm/include/llvm/Assembly/Parser.h:1.7	Mon Oct 20 15:19:19 2003
+++ llvm/include/llvm/Assembly/Parser.h	Tue Nov 11 16:41:31 2003
@@ -16,6 +16,8 @@
 
 #include <string>
 
+namespace llvm {
+
 class Module;
 class ParseException;
 
@@ -69,5 +71,7 @@
 
   ParseException &operator=(const ParseException &E); // objects by reference
 };
+
+} // End llvm namespace
 
 #endif


Index: llvm/include/llvm/Assembly/PrintModulePass.h
diff -u llvm/include/llvm/Assembly/PrintModulePass.h:1.14 llvm/include/llvm/Assembly/PrintModulePass.h:1.15
--- llvm/include/llvm/Assembly/PrintModulePass.h:1.14	Mon Oct 20 15:19:19 2003
+++ llvm/include/llvm/Assembly/PrintModulePass.h	Tue Nov 11 16:41:31 2003
@@ -21,6 +21,8 @@
 #include "llvm/Pass.h"
 #include "llvm/Module.h"
 
+namespace llvm {
+
 class PrintModulePass : public Pass {
   std::ostream *Out;      // ostream to print on
   bool DeleteStream;      // Delete the ostream in our dtor?
@@ -71,5 +73,7 @@
     AU.setPreservesAll();
   }
 };
+
+} // End llvm namespace
 
 #endif


Index: llvm/include/llvm/Assembly/Writer.h
diff -u llvm/include/llvm/Assembly/Writer.h:1.26 llvm/include/llvm/Assembly/Writer.h:1.27
--- llvm/include/llvm/Assembly/Writer.h:1.26	Mon Oct 20 15:19:19 2003
+++ llvm/include/llvm/Assembly/Writer.h	Tue Nov 11 16:41:31 2003
@@ -24,6 +24,9 @@
 #define LLVM_ASSEMBLY_WRITER_H
 
 #include <iosfwd>
+
+namespace llvm {
+
 class Type;
 class Module;
 class Value;
@@ -42,5 +45,7 @@
 //
 std::ostream &WriteAsOperand(std::ostream &, const Value *, bool PrintTy = true,
                              bool PrintName = true, const Module *Context = 0);
+
+} // End llvm namespace
 
 #endif





More information about the llvm-commits mailing list