summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2002-10-29 19:38:46 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2002-10-29 19:38:46 +0000
commite68a3435ee6a695f1fd4b80c3d482e396001e0f5 (patch)
tree532b87909867c26a3b4681166edc929031c0fe0c /include
parentaabb595c4f389e1cb9e0511f66f10b24108a2ada (diff)
downloadllvm-e68a3435ee6a695f1fd4b80c3d482e396001e0f5.tar.gz
llvm-e68a3435ee6a695f1fd4b80c3d482e396001e0f5.tar.bz2
llvm-e68a3435ee6a695f1fd4b80c3d482e396001e0f5.tar.xz
Move CallArgsDescriptor into this class instead of making it an
annotation on the machine instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4398 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineCodeForInstruction.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineCodeForInstruction.h b/include/llvm/CodeGen/MachineCodeForInstruction.h
index 2193a80e52..f4ec42dbf3 100644
--- a/include/llvm/CodeGen/MachineCodeForInstruction.h
+++ b/include/llvm/CodeGen/MachineCodeForInstruction.h
@@ -23,12 +23,14 @@
class MachineInstr;
class Instruction;
class Value;
+class CallArgsDescriptor;
extern AnnotationID MCFI_AID;
class MachineCodeForInstruction : public Annotation {
- std::vector<Value*> tempVec; // used by m/c instr but not VM instr
- std::vector<MachineInstr*> Contents;
+ std::vector<Value*> tempVec; // used by m/c instr but not VM instr
+ std::vector<MachineInstr*> Contents; // the machine instr for this VM instr
+ CallArgsDescriptor* callArgsDesc; // only used for CALL instructions
public:
MachineCodeForInstruction() : Annotation(MCFI_AID) {}
~MachineCodeForInstruction();
@@ -81,6 +83,9 @@ public:
tempVec.push_back(tmp);
return *this;
}
+
+ void setCallArgsDescriptor(CallArgsDescriptor* desc) { callArgsDesc = desc; }
+ CallArgsDescriptor* getCallArgsDescriptor() const { return callArgsDesc; }
};
#endif