From c3719c36e61f6ac28fc1e12587131bcae6581671 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 2 Aug 2009 23:37:13 +0000 Subject: 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 --- llvm/lib/Target/CppBackend/CPPTargetMachine.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Target/CppBackend/CPPTargetMachine.h') diff --git a/llvm/lib/Target/CppBackend/CPPTargetMachine.h b/llvm/lib/Target/CppBackend/CPPTargetMachine.h index 0cf1fd40365..c7c8a7e04a4 100644 --- a/llvm/lib/Target/CppBackend/CPPTargetMachine.h +++ b/llvm/lib/Target/CppBackend/CPPTargetMachine.h @@ -24,7 +24,8 @@ class formatted_raw_ostream; struct CPPTargetMachine : public TargetMachine { const TargetData DataLayout; // Calculates type size & alignment - CPPTargetMachine(const Target &T, const Module &M, const std::string &FS) + CPPTargetMachine(const Target &T, const Module &M, + const std::string &FS) : TargetMachine(T), DataLayout(&M) {} virtual bool WantsWholeFile() const { return true; } -- cgit v1.2.3