mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-04 02:47:25 +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:
parent
2caf1b212e
commit
d1a919e139
@ -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; }
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user