mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77146 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
93b67e40de
commit
92fbbc7588
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user