diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2009-07-26 08:16:51 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2009-07-26 08:16:51 +0000 |
| commit | ec7ec7c1ac26a6a5e62eb9996e623e79061e021f (patch) | |
| tree | 8e980b7e33e95e451f0c564e99c8681eaa90abb5 | |
| parent | 9813b0b02514a765cbc030eb75561a2d8e625cca (diff) | |
| download | bcm5719-llvm-ec7ec7c1ac26a6a5e62eb9996e623e79061e021f.tar.gz bcm5719-llvm-ec7ec7c1ac26a6a5e62eb9996e623e79061e021f.zip | |
Move MSILModule and MSILWriter into the 'llvm' namespace, instead of the 'MSIL'
namespace which could very well conflict with non-LLVM code.
Also clean up some spacing, remove an extra header.
llvm-svn: 77146
| -rw-r--r-- | llvm/lib/Target/MSIL/MSILWriter.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/MSIL/MSILWriter.h | 7 |
2 files changed, 3 insertions, 8 deletions
diff --git a/llvm/lib/Target/MSIL/MSILWriter.cpp b/llvm/lib/Target/MSIL/MSILWriter.cpp index ccac5189f31..6e0f3b6d42c 100644 --- a/llvm/lib/Target/MSIL/MSILWriter.cpp +++ b/llvm/lib/Target/MSIL/MSILWriter.cpp @@ -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 diff --git a/llvm/lib/Target/MSIL/MSILWriter.h b/llvm/lib/Target/MSIL/MSILWriter.h index 21ff359920a..aa9e07540f9 100644 --- a/llvm/lib/Target/MSIL/MSILWriter.h +++ b/llvm/lib/Target/MSIL/MSILWriter.h @@ -27,14 +27,9 @@ #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; |

