[mips] Initial implementation of -mabicalls/-mno-abicalls.
[oota-llvm.git] / lib / Target / Mips / MipsAsmPrinter.cpp
index dfc1b09738f05ffdbcb29c28d2e5396419a423f8..187252e9889b3bf499f9af89d5ced11614aa3b5b 100644 (file)
@@ -671,9 +671,7 @@ printFCCOperand(const MachineInstr *MI, int opNum, raw_ostream &O,
 }
 
 void MipsAsmPrinter::EmitStartOfAsmFile(Module &M) {
-  // TODO: Need to add -mabicalls and -mno-abicalls flags.
-  // Currently we assume that -mabicalls is the default.
-  bool IsABICalls = true;
+  bool IsABICalls = Subtarget->isABICalls();
   if (IsABICalls) {
     getTargetStreamer().emitDirectiveAbiCalls();
     Reloc::Model RM = TM.getRelocationModel();