[llvm-commits] CVS: llvm/tools/gccld/GenerateCode.cpp Linker.cpp gccld.cpp gccld.h

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


Changes in directory llvm/tools/gccld:

GenerateCode.cpp updated: 1.12 -> 1.13
Linker.cpp updated: 1.15 -> 1.16
gccld.cpp updated: 1.61 -> 1.62
gccld.h updated: 1.4 -> 1.5

---
Log message:

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

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

Index: llvm/tools/gccld/GenerateCode.cpp
diff -u llvm/tools/gccld/GenerateCode.cpp:1.12 llvm/tools/gccld/GenerateCode.cpp:1.13
--- llvm/tools/gccld/GenerateCode.cpp:1.12	Sun Nov  9 13:55:09 2003
+++ llvm/tools/gccld/GenerateCode.cpp	Tue Nov 11 16:41:34 2003
@@ -25,11 +25,14 @@
 #include "Support/SystemUtils.h"
 #include "Support/CommandLine.h"
 
+using namespace llvm;
+
 namespace {
   cl::opt<bool>
   DisableInline("disable-inlining", cl::desc("Do not run the inliner pass"));
 }
 
+namespace llvm {
 
 /// GenerateBytecode - generates a bytecode file from the specified module.
 ///
@@ -221,3 +224,5 @@
   // Run the compiler to assembly and link together the program.
   return ExecWait(&(cmd[0]), clean_env);
 }
+
+} // End llvm namespace


Index: llvm/tools/gccld/Linker.cpp
diff -u llvm/tools/gccld/Linker.cpp:1.15 llvm/tools/gccld/Linker.cpp:1.16
--- llvm/tools/gccld/Linker.cpp:1.15	Tue Nov 11 15:54:01 2003
+++ llvm/tools/gccld/Linker.cpp	Tue Nov 11 16:41:34 2003
@@ -30,6 +30,8 @@
 #include <memory>
 #include <set>
 
+namespace llvm {
+
 /// FindLib - Try to convert Filename into the name of a file that we can open,
 /// if it does not already name a file we can open, by first trying to open
 /// Filename, then libFilename.<suffix> for each of a set of several common
@@ -405,3 +407,5 @@
 
   return false;
 }
+
+} // End llvm namespace


Index: llvm/tools/gccld/gccld.cpp
diff -u llvm/tools/gccld/gccld.cpp:1.61 llvm/tools/gccld/gccld.cpp:1.62
--- llvm/tools/gccld/gccld.cpp:1.61	Wed Nov  5 16:13:00 2003
+++ llvm/tools/gccld/gccld.cpp	Tue Nov 11 16:41:34 2003
@@ -36,6 +36,8 @@
 #include <fstream>
 #include <memory>
 
+using namespace llvm;
+
 namespace {
   cl::list<std::string> 
   InputFilenames(cl::Positional, cl::desc("<input bytecode files>"),
@@ -86,6 +88,8 @@
   CO5("eh-frame-hdr", cl::Hidden, cl::desc("Compatibility option: ignored"));
 }
 
+namespace llvm {
+
 //
 // Function: PrintAndReturn ()
 //
@@ -211,6 +215,7 @@
   return;
 }
 
+} // End llvm namespace
 
 int main(int argc, char **argv, char **envp) {
   cl::ParseCommandLineOptions(argc, argv, " llvm linker for GCC\n");


Index: llvm/tools/gccld/gccld.h
diff -u llvm/tools/gccld/gccld.h:1.4 llvm/tools/gccld/gccld.h:1.5
--- llvm/tools/gccld/gccld.h:1.4	Wed Nov  5 16:13:10 2003
+++ llvm/tools/gccld/gccld.h	Tue Nov 11 16:41:34 2003
@@ -17,6 +17,8 @@
 #include <set>
 #include <ostream>
 
+namespace llvm {
+
 int
 PrintAndReturn (const char *progname,
                 const std::string &Message,
@@ -69,3 +71,4 @@
            const std::vector<std::string> & Files,
            bool Verbose);
 
+} // End llvm namespace





More information about the llvm-commits mailing list