-// $Id$ -*-c++-*-
-//***************************************************************************
-// File:
-// MachineInstrAnnot.cpp
+//===-- MachineInstrAnnot.cpp ---------------------------------------------===//
//
-// Purpose:
-// Annotations used to pass information between code generation phases.
+// This file defines Annotations used to pass information between code
+// generation phases.
//
-// History:
-// 5/10/02 - Vikram Adve - Created
-//**************************************************************************/
+//===----------------------------------------------------------------------===//
#include "llvm/CodeGen/MachineInstrAnnot.h"
#include "llvm/Annotation.h"
#include "llvm/iOther.h"
-#include <vector>
-
AnnotationID CallArgsDescriptor::AID(AnnotationManager::
getID("CodeGen::CallArgsDescriptor"));
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);
+}