Move MSILModule and MSILWriter into the 'llvm' namespace, instead of the 'MSIL'
authorNick Lewycky <nicholas@mxc.ca>
Sun, 26 Jul 2009 08:16:51 +0000 (08:16 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 26 Jul 2009 08:16:51 +0000 (08:16 +0000)
namespace which could very well conflict with non-LLVM code.

Also clean up some spacing, remove an extra header.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77146 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/MSIL/MSILWriter.cpp
lib/Target/MSIL/MSILWriter.h

index ccac5189f3127dad03954c6a4ca4971ee650a632..6e0f3b6d42cea75a0c023685c380a18b3b8e4aae 100644 (file)
@@ -26,9 +26,9 @@
 #include "llvm/Transforms/Scalar.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/CodeGen/Passes.h"
-using namespace MSIL;
+using namespace llvm;
 
-namespace {
+namespace llvm {
   // TargetMachine for the MSIL 
   struct VISIBILITY_HIDDEN MSILTarget : public TargetMachine {
     const TargetData DataLayout;       // Calculates type size & alignment
index 21ff359920a3ae22c9a57492c491e4e43ffcb519..aa9e07540f9e340aa8a712bcc0720b49fd9a5754 100644 (file)
 #include "llvm/Target/TargetData.h"
 #include "llvm/Target/TargetMachine.h"
 #include "llvm/Support/Mangler.h"
-#include <ios>
-using namespace llvm;
 
 namespace llvm {
   extern Target TheMSILTarget;
-}
-
-namespace MSIL {
 
   class MSILModule : public ModulePass {
     Module *ModulePtr;
@@ -60,7 +55,7 @@ namespace MSIL {
 
   };
 
-  class MSILWriter  : public FunctionPass {
+  class MSILWriter : public FunctionPass {
     struct StaticInitializer {
       const Constant* constant;
       uint64_t offset;