aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Instructions.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-27 16:14:51 +0000
committerChris Lattner <sabre@nondot.org>2004-10-27 16:14:51 +0000
commit1fca5ff62bb2ecb5bfc8974f4dbfc56e9d3ca721 (patch)
tree84ba84e29d790774dd87ad9efc8acb702dafc842 /include/llvm/Instructions.h
parent3acd9181df5d8f76f75a384266e2a78b9a6c4f45 (diff)
downloadexternal_llvm-1fca5ff62bb2ecb5bfc8974f4dbfc56e9d3ca721.zip
external_llvm-1fca5ff62bb2ecb5bfc8974f4dbfc56e9d3ca721.tar.gz
external_llvm-1fca5ff62bb2ecb5bfc8974f4dbfc56e9d3ca721.tar.bz2
Convert 'struct' to 'class' in various places to adhere to the coding standards
and work better with VC++. Patch contributed by Morten Ofstad! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17281 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r--include/llvm/Instructions.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index 96772ed..5ba361b 100644
--- a/include/llvm/Instructions.h
+++ b/include/llvm/Instructions.h
@@ -21,7 +21,7 @@
namespace llvm {
-struct BasicBlock;
+class BasicBlock;
class PointerType;
//===----------------------------------------------------------------------===//
@@ -1159,7 +1159,8 @@ public:
/// UnwindInst - Immediately exit the current function, unwinding the stack
/// until an invoke instruction is found.
///
-struct UnwindInst : public TerminatorInst {
+class UnwindInst : public TerminatorInst {
+public:
UnwindInst(Instruction *InsertBefore = 0)
: TerminatorInst(Instruction::Unwind, InsertBefore) {
}
@@ -1196,7 +1197,8 @@ struct UnwindInst : public TerminatorInst {
/// presence of this instruction indicates some higher level knowledge that the
/// end of the block cannot be reached.
///
-struct UnreachableInst : public TerminatorInst {
+class UnreachableInst : public TerminatorInst {
+public:
UnreachableInst(Instruction *InsertBefore = 0)
: TerminatorInst(Instruction::Unreachable, InsertBefore) {
}