aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Alpha
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-15 12:11:05 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-15 12:11:05 +0000
commit03f4bc5d6cf777c8aa559c299ef7f85126872881 (patch)
treedccd08e465e3256502fb847f574b8f8b5018e70b /lib/Target/Alpha
parentc3493cca4c3b4968e6a27a8eaa9031dcffb2073a (diff)
downloadexternal_llvm-03f4bc5d6cf777c8aa559c299ef7f85126872881.zip
external_llvm-03f4bc5d6cf777c8aa559c299ef7f85126872881.tar.gz
external_llvm-03f4bc5d6cf777c8aa559c299ef7f85126872881.tar.bz2
Provide TargetMachine implementations with reference to Target they were created
from. - This commit is almost entirely propogating the reference through the TargetMachine subclasses' constructor calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha')
-rw-r--r--lib/Target/Alpha/AlphaTargetMachine.cpp6
-rw-r--r--lib/Target/Alpha/AlphaTargetMachine.h2
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/Target/Alpha/AlphaTargetMachine.cpp b/lib/Target/Alpha/AlphaTargetMachine.cpp
index 8775bb7..9725b53 100644
--- a/lib/Target/Alpha/AlphaTargetMachine.cpp
+++ b/lib/Target/Alpha/AlphaTargetMachine.cpp
@@ -63,8 +63,10 @@ unsigned AlphaTargetMachine::getJITMatchQuality() {
#endif
}
-AlphaTargetMachine::AlphaTargetMachine(const Module &M, const std::string &FS)
- : DataLayout("e-f128:128:128"),
+AlphaTargetMachine::AlphaTargetMachine(const Target &T, const Module &M,
+ const std::string &FS)
+ : LLVMTargetMachine(T),
+ DataLayout("e-f128:128:128"),
FrameInfo(TargetFrameInfo::StackGrowsDown, 16, 0),
JITInfo(*this),
Subtarget(M, FS),
diff --git a/lib/Target/Alpha/AlphaTargetMachine.h b/lib/Target/Alpha/AlphaTargetMachine.h
index 7546892..e5e69b2 100644
--- a/lib/Target/Alpha/AlphaTargetMachine.h
+++ b/lib/Target/Alpha/AlphaTargetMachine.h
@@ -45,7 +45,7 @@ protected:
static AsmPrinterCtorFn AsmPrinterCtor;
public:
- AlphaTargetMachine(const Module &M, const std::string &FS);
+ AlphaTargetMachine(const Target &T, const Module &M, const std::string &FS);
virtual const AlphaInstrInfo *getInstrInfo() const { return &InstrInfo; }
virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }