diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-02 23:37:13 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-02 23:37:13 +0000 |
commit | c3719c36e61f6ac28fc1e12587131bcae6581671 (patch) | |
tree | 774ba7501ce13f5da38e87518ef98535c0ded3ea /llvm/lib/Target/CBackend/CTargetMachine.h | |
parent | 71fc19e9911e234761151867079764c942f3b7bf (diff) | |
download | bcm5719-llvm-c3719c36e61f6ac28fc1e12587131bcae6581671.tar.gz bcm5719-llvm-c3719c36e61f6ac28fc1e12587131bcae6581671.zip |
Move most targets TargetMachine constructor to only taking a target triple.
- The C, C++, MSIL, and Mips backends still need the module.
llvm-svn: 77927
Diffstat (limited to 'llvm/lib/Target/CBackend/CTargetMachine.h')
-rw-r--r-- | llvm/lib/Target/CBackend/CTargetMachine.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/CBackend/CTargetMachine.h b/llvm/lib/Target/CBackend/CTargetMachine.h index a3052ab8259..72146a80cb9 100644 --- a/llvm/lib/Target/CBackend/CTargetMachine.h +++ b/llvm/lib/Target/CBackend/CTargetMachine.h @@ -22,7 +22,8 @@ namespace llvm { struct CTargetMachine : public TargetMachine { const TargetData DataLayout; // Calculates type size & alignment - CTargetMachine(const Target &T, const Module &M, const std::string &FS) + CTargetMachine(const Target &T, const Module &M, + const std::string &FS) : TargetMachine(T), DataLayout(&M) {} virtual bool WantsWholeFile() const { return true; } |