aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineInstrAnnot.cpp
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2003-07-10 19:46:15 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2003-07-10 19:46:15 +0000
commit4d2faf630712f7a70d0d595f412a501a5e8cd3a8 (patch)
tree1edaea2b95d52ad58f364897f75dd53a3c1666a0 /lib/CodeGen/MachineInstrAnnot.cpp
parent24d0410db074192fc8d9a60a168f6ec9d1b41edd (diff)
Values stored in CallArgsDescriptor cannot be const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstrAnnot.cpp')
-rw-r--r--lib/CodeGen/MachineInstrAnnot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineInstrAnnot.cpp b/lib/CodeGen/MachineInstrAnnot.cpp
index 7f93753ccd..419e10ecd3 100644
--- a/lib/CodeGen/MachineInstrAnnot.cpp
+++ b/lib/CodeGen/MachineInstrAnnot.cpp
@@ -12,7 +12,7 @@
#include "llvm/Type.h"
-CallArgsDescriptor::CallArgsDescriptor(const CallInst* _callInstr,
+CallArgsDescriptor::CallArgsDescriptor(CallInst* _callInstr,
TmpInstruction* _retAddrReg,
bool _isVarArgs, bool _noPrototype)
: callInstr(_callInstr),
@@ -35,7 +35,7 @@ CallArgsDescriptor::CallArgsDescriptor(const CallInst* _callInstr,
}
-const CallInst*
+CallInst*
CallArgsDescriptor::getReturnValue() const
{
return (callInstr->getType() == Type::VoidTy? NULL : callInstr);