summaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2002-09-28 17:03:54 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2002-09-28 17:03:54 +0000
commitf425884e275c66f975a68e56f24b33a2d1c6e5c6 (patch)
tree28758bb7d6f1791a3a20ca3fcb5b522386beabf6 /include/llvm/CodeGen
parentad9c978874e02deff86257ad23de8e60069f84d9 (diff)
downloadexternal_llvm-f425884e275c66f975a68e56f24b33a2d1c6e5c6.zip
external_llvm-f425884e275c66f975a68e56f24b33a2d1c6e5c6.tar.gz
external_llvm-f425884e275c66f975a68e56f24b33a2d1c6e5c6.tar.bz2
Fixed method getReturnValue(): it should return NULL if the
callee does not return a value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3968 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/MachineInstrAnnot.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineInstrAnnot.h b/include/llvm/CodeGen/MachineInstrAnnot.h
index bd3f733..be3aaac 100644
--- a/include/llvm/CodeGen/MachineInstrAnnot.h
+++ b/include/llvm/CodeGen/MachineInstrAnnot.h
@@ -68,12 +68,12 @@ public:
unsigned int getNumArgs() const { return argInfoVec.size(); }
CallArgInfo& getArgInfo(unsigned int op) { assert(op < argInfoVec.size());
return argInfoVec[op]; }
- const CallInst* getReturnValue() const { return callInstr; }
+ const CallInst* getReturnValue() const;
const Value* getIndirectFuncPtr() const { return funcPtr; }
TmpInstruction* getReturnAddrReg() const { return retAddrReg; }
bool isVarArgsFunc() const { return isVarArgs; }
bool hasNoPrototype() const { return noPrototype; }
-
+
// Annotation mechanism to annotate a MachineInstr with the descriptor.
// This is not demand-driven because annotations can only be created
// at restricted points during code generation.