aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Instructions.h
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-06-18 18:31:30 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-06-18 18:31:30 +0000
commitf5428213853bae45247fe6da711ff20954d73dbd (patch)
tree5747110c1c0c85ff2590290fc8db0cb8d2d3e187 /include/llvm/Instructions.h
parentcc494e8312c8e654be348d0f1dc0b0d73b87cb49 (diff)
downloadexternal_llvm-f5428213853bae45247fe6da711ff20954d73dbd.tar.gz
external_llvm-f5428213853bae45247fe6da711ff20954d73dbd.tar.bz2
external_llvm-f5428213853bae45247fe6da711ff20954d73dbd.zip
header file changes for varargs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22253 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r--include/llvm/Instructions.h45
1 files changed, 1 insertions, 44 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index 904ca8f378..53cfe6ae1d 100644
--- a/include/llvm/Instructions.h
+++ b/include/llvm/Instructions.h
@@ -660,55 +660,12 @@ public:
}
};
-
-//===----------------------------------------------------------------------===//
-// VANextInst Class
-//===----------------------------------------------------------------------===//
-
-/// VANextInst - This class represents the va_next llvm instruction, which
-/// advances a vararg list passed an argument of the specified type, returning
-/// the resultant list.
-///
-class VANextInst : public UnaryInstruction {
- PATypeHolder ArgTy;
- VANextInst(const VANextInst &VAN)
- : UnaryInstruction(VAN.getType(), VANext, VAN.getOperand(0)),
- ArgTy(VAN.getArgType()) {
- }
-
-public:
- VANextInst(Value *List, const Type *Ty, const std::string &Name = "",
- Instruction *InsertBefore = 0)
- : UnaryInstruction(List->getType(), VANext, List, Name, InsertBefore),
- ArgTy(Ty) {
- }
- VANextInst(Value *List, const Type *Ty, const std::string &Name,
- BasicBlock *InsertAtEnd)
- : UnaryInstruction(List->getType(), VANext, List, Name, InsertAtEnd),
- ArgTy(Ty) {
- }
-
- const Type *getArgType() const { return ArgTy; }
-
- virtual VANextInst *clone() const;
-
- // Methods for support type inquiry through isa, cast, and dyn_cast:
- static inline bool classof(const VANextInst *) { return true; }
- static inline bool classof(const Instruction *I) {
- return I->getOpcode() == VANext;
- }
- static inline bool classof(const Value *V) {
- return isa<Instruction>(V) && classof(cast<Instruction>(V));
- }
-};
-
-
//===----------------------------------------------------------------------===//
// VAArgInst Class
//===----------------------------------------------------------------------===//
/// VAArgInst - This class represents the va_arg llvm instruction, which returns
-/// an argument of the specified type given a va_list.
+/// an argument of the specified type given a va_list and increments that list
///
class VAArgInst : public UnaryInstruction {
VAArgInst(const VAArgInst &VAA)