summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CppBackend/CPPTargetMachine.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-02 23:37:13 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-02 23:37:13 +0000
commitc3719c36e61f6ac28fc1e12587131bcae6581671 (patch)
tree774ba7501ce13f5da38e87518ef98535c0ded3ea /llvm/lib/Target/CppBackend/CPPTargetMachine.h
parent71fc19e9911e234761151867079764c942f3b7bf (diff)
downloadbcm5719-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/CppBackend/CPPTargetMachine.h')
-rw-r--r--llvm/lib/Target/CppBackend/CPPTargetMachine.h3
1 files changed, 2 insertions, 1 deletions
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; }
OpenPOWER on IntegriCloud