Generate DEBUG_VALUE comments on x86. The (limited)
[oota-llvm.git] / lib / CodeGen / SelectionDAG / FastISel.cpp
index 09fd657fffd04750a740074a10f4658b8f68d365..b7dbd03fc3af384bc272bbe087ac11caccf1f24a 100644 (file)
@@ -343,6 +343,9 @@ bool FastISel::SelectCall(User *I) {
       if (MDNode *Dbg = DI->getMetadata("dbg"))
         MMI->setVariableDbgInfo(DI->getVariable(), FI, Dbg);
     }
+    // Building the map above is target independent.  Generating DEBUG_VALUE
+    // inline is target dependent; do this now.
+    (void)TargetSelectInstruction(cast<Instruction>(I));
     return true;
   }
   case Intrinsic::eh_exception: {