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.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Target/Alpha/AlphaAsmPrinter.cpp b/lib/Target/Alpha/AlphaAsmPrinter.cpp
index 3e7d5e7bbc..3c1b783b91 100644
--- a/lib/Target/Alpha/AlphaAsmPrinter.cpp
+++ b/lib/Target/Alpha/AlphaAsmPrinter.cpp
@@ -25,9 +25,14 @@
#include "llvm/Support/Mangler.h"
#include "llvm/ADT/Statistic.h"
+#include "llvm/Support/CommandLine.h"
using namespace llvm;
+namespace llvm {
+ extern cl::opt<bool> EnableAlphaFTOI;
+}
+
namespace {
Statistic<> EmittedInsts("asm-printer", "Number of machine instrs printed");
@@ -229,7 +234,10 @@ void AlphaAsmPrinter::printConstantPool(MachineConstantPool *MCP) {
bool AlphaAsmPrinter::doInitialization(Module &M)
{
AsmPrinter::doInitialization(M);
- O << "\t.arch ev56\n";
+ if(EnableAlphaFTOI)
+ O << "\t.arch ev6\n";
+ else
+ O << "\t.arch ev56\n";
return false;
}