begining alpha subtarget support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23531 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/Alpha/AlphaAsmPrinter.cpp b/lib/Target/Alpha/AlphaAsmPrinter.cpp
index ea5c469..9581c0c 100644
--- a/lib/Target/Alpha/AlphaAsmPrinter.cpp
+++ b/lib/Target/Alpha/AlphaAsmPrinter.cpp
@@ -14,6 +14,7 @@
#include "Alpha.h"
#include "AlphaInstrInfo.h"
+#include "AlphaTargetMachine.h"
#include "llvm/Module.h"
#include "llvm/Type.h"
#include "llvm/Assembly/Writer.h"
@@ -29,11 +30,6 @@
using namespace llvm;
-namespace llvm {
- extern cl::opt<bool> EnableAlphaFTOI;
- extern cl::opt<bool> EnableAlphaCT;
-}
-
namespace {
Statistic<> EmittedInsts("asm-printer", "Number of machine instrs printed");
@@ -235,7 +231,8 @@
bool AlphaAsmPrinter::doInitialization(Module &M)
{
AsmPrinter::doInitialization(M);
- if(EnableAlphaFTOI || EnableAlphaCT)
+ if(TM.getSubtarget<AlphaSubtarget>().hasF2I()
+ || TM.getSubtarget<AlphaSubtarget>().hasCT())
O << "\t.arch ev6\n";
else
O << "\t.arch ev56\n";