aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Alpha/AlphaAsmPrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/Alpha/AlphaAsmPrinter.cpp')
-rw-r--r--lib/Target/Alpha/AlphaAsmPrinter.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Target/Alpha/AlphaAsmPrinter.cpp b/lib/Target/Alpha/AlphaAsmPrinter.cpp
index ea5c469005..9581c0c532 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 @@ void AlphaAsmPrinter::printConstantPool(MachineConstantPool *MCP) {
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";