mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-10 02:25:47 +00:00
Change C, CBE, MSIL to not provide target data via getTargetData().
- The theory is these should never actually be called, since these boil down to passes which can access the target data via the standard mechanism. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77975 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -32,7 +32,7 @@ struct CTargetMachine : public TargetMachine {
|
||||
CodeGenFileType FileType,
|
||||
CodeGenOpt::Level OptLevel);
|
||||
|
||||
virtual const TargetData *getTargetData() const { return &DataLayout; }
|
||||
virtual const TargetData *getTargetData() const { return 0; }
|
||||
};
|
||||
|
||||
extern Target TheCBackendTarget;
|
||||
|
@@ -34,7 +34,7 @@ struct CPPTargetMachine : public TargetMachine {
|
||||
CodeGenFileType FileType,
|
||||
CodeGenOpt::Level OptLevel);
|
||||
|
||||
virtual const TargetData *getTargetData() const { return &DataLayout; }
|
||||
virtual const TargetData *getTargetData() const { return 0; }
|
||||
};
|
||||
|
||||
extern Target TheCppBackendTarget;
|
||||
|
@@ -42,7 +42,7 @@ namespace llvm {
|
||||
CodeGenFileType FileType,
|
||||
CodeGenOpt::Level OptLevel);
|
||||
|
||||
virtual const TargetData *getTargetData() const { return &DataLayout; }
|
||||
virtual const TargetData *getTargetData() const { return 0; }
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user