diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-09-07 23:39:26 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-09-07 23:39:26 +0000 |
commit | fde1b3bb2f15b74c713d98a79fcddaff1ac00dd1 (patch) | |
tree | 80b75444ec775521e8d803493cf95d5d41ddc300 /lib/Target/Alpha/AlphaTargetMachine.cpp | |
parent | f93f68347f06f6e12dd214c21436bfde55e66bf7 (diff) |
1. Remove condition on delete.
2. Protect and outline createTargetAsmInfo.
3. Misc. kruft.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaTargetMachine.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaTargetMachine.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Target/Alpha/AlphaTargetMachine.cpp b/lib/Target/Alpha/AlphaTargetMachine.cpp index cbe0cdbf4d..b752e4c104 100644 --- a/lib/Target/Alpha/AlphaTargetMachine.cpp +++ b/lib/Target/Alpha/AlphaTargetMachine.cpp @@ -12,6 +12,7 @@ #include "Alpha.h" #include "AlphaJITInfo.h" +#include "AlphaTargetAsmInfo.h" #include "AlphaTargetMachine.h" #include "llvm/Module.h" #include "llvm/PassManager.h" @@ -24,6 +25,10 @@ namespace { RegisterTarget<AlphaTargetMachine> X("alpha", " Alpha (incomplete)"); } +const TargetAsmInfo *AlphaTargetMachine::createTargetAsmInfo() const { + return new AlphaTargetAsmInfo(*this); +} + unsigned AlphaTargetMachine::getModuleMatchQuality(const Module &M) { // We strongly match "alpha*". std::string TT = M.getTargetTriple(); @@ -53,8 +58,7 @@ AlphaTargetMachine::AlphaTargetMachine(const Module &M, const std::string &FS) : DataLayout("e"), FrameInfo(TargetFrameInfo::StackGrowsDown, 16, 0), JITInfo(*this), - Subtarget(M, FS), - AsmInfo(NULL) { + Subtarget(M, FS) { } |