[llvm-commits] [llvm] r77146 - in /llvm/trunk/lib/Target/MSIL: MSILWriter.cpp MSILWriter.h
Nick Lewycky
nicholas at mxc.ca
Sun Jul 26 01:17:00 PDT 2009
Author: nicholas
Date: Sun Jul 26 03:16:51 2009
New Revision: 77146
URL: http://llvm.org/viewvc/llvm-project?rev=77146&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Target/MSIL/MSILWriter.cpp
llvm/trunk/lib/Target/MSIL/MSILWriter.h
Modified: llvm/trunk/lib/Target/MSIL/MSILWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSIL/MSILWriter.cpp?rev=77146&r1=77145&r2=77146&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSIL/MSILWriter.cpp (original)
+++ llvm/trunk/lib/Target/MSIL/MSILWriter.cpp Sun Jul 26 03:16:51 2009
@@ -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
Modified: llvm/trunk/lib/Target/MSIL/MSILWriter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSIL/MSILWriter.h?rev=77146&r1=77145&r2=77146&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSIL/MSILWriter.h (original)
+++ llvm/trunk/lib/Target/MSIL/MSILWriter.h Sun Jul 26 03:16:51 2009
@@ -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 @@
};
- class MSILWriter : public FunctionPass {
+ class MSILWriter : public FunctionPass {
struct StaticInitializer {
const Constant* constant;
uint64_t offset;
More information about the llvm-commits
mailing list