[llvm-commits] CVS: llvm/lib/CodeGen/InstrSelection/MachineInstrAnnot.cpp

Vikram Adve vadve at cs.uiuc.edu
Sat Sep 28 12:04:02 PDT 2002


Changes in directory llvm/lib/CodeGen/InstrSelection:

MachineInstrAnnot.cpp updated: 1.2 -> 1.3

---
Log message:

Fixed method getReturnValue(): it should return NULL if the
callee does not return a value.


---
Diffs of the changes:

Index: llvm/lib/CodeGen/InstrSelection/MachineInstrAnnot.cpp
diff -u llvm/lib/CodeGen/InstrSelection/MachineInstrAnnot.cpp:1.2 llvm/lib/CodeGen/InstrSelection/MachineInstrAnnot.cpp:1.3
--- llvm/lib/CodeGen/InstrSelection/MachineInstrAnnot.cpp:1.2	Fri Aug  9 15:07:57 2002
+++ llvm/lib/CodeGen/InstrSelection/MachineInstrAnnot.cpp	Sat Sep 28 12:03:40 2002
@@ -30,3 +30,10 @@
   for (unsigned int i=1; i < numArgs; ++i)
     argInfoVec.push_back(CallArgInfo(callInstr->getOperand(i)));
 }
+
+
+const CallInst*
+CallArgsDescriptor::getReturnValue() const
+{
+  return (callInstr->getType() == Type::VoidTy? NULL : callInstr);
+}





More information about the llvm-commits mailing list