aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineInstrAnnot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/MachineInstrAnnot.cpp')
-rw-r--r--lib/CodeGen/MachineInstrAnnot.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineInstrAnnot.cpp b/lib/CodeGen/MachineInstrAnnot.cpp
index 960c49283e..ef064450ed 100644
--- a/lib/CodeGen/MachineInstrAnnot.cpp
+++ b/lib/CodeGen/MachineInstrAnnot.cpp
@@ -30,3 +30,10 @@ CallArgsDescriptor::CallArgsDescriptor(const CallInst* _callInstr,
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);
+}