[llvm-commits] CVS: llvm/include/llvm/Target/TargetData.h TargetFrameInfo.h TargetInstrInfo.h TargetSchedInfo.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Oct 27 09:15:04 PDT 2004
Changes in directory llvm/include/llvm/Target:
TargetData.h updated: 1.27 -> 1.28
TargetFrameInfo.h updated: 1.16 -> 1.17
TargetInstrInfo.h updated: 1.72 -> 1.73
TargetSchedInfo.h updated: 1.31 -> 1.32
---
Log message:
Convert 'struct' to 'class' in various places to adhere to the coding standards
and work better with VC++. Patch contributed by Morten Ofstad!
---
Diffs of the changes: (+8 -4)
Index: llvm/include/llvm/Target/TargetData.h
diff -u llvm/include/llvm/Target/TargetData.h:1.27 llvm/include/llvm/Target/TargetData.h:1.28
--- llvm/include/llvm/Target/TargetData.h:1.27 Wed Sep 1 17:55:35 2004
+++ llvm/include/llvm/Target/TargetData.h Wed Oct 27 11:14:51 2004
@@ -114,7 +114,8 @@
// This object is used to lazily calculate structure layout information for a
// target machine, based on the TargetData structure.
//
-struct StructLayout {
+class StructLayout {
+public:
std::vector<uint64_t> MemberOffsets;
uint64_t StructSize;
unsigned StructAlignment;
Index: llvm/include/llvm/Target/TargetFrameInfo.h
diff -u llvm/include/llvm/Target/TargetFrameInfo.h:1.16 llvm/include/llvm/Target/TargetFrameInfo.h:1.17
--- llvm/include/llvm/Target/TargetFrameInfo.h:1.16 Sun Aug 15 04:18:55 2004
+++ llvm/include/llvm/Target/TargetFrameInfo.h Wed Oct 27 11:14:51 2004
@@ -27,7 +27,8 @@
/// The offset to the local area is the offset from the stack pointer on
/// function entry to the first location where function data (local variables,
/// spill locations) can be stored.
-struct TargetFrameInfo {
+class TargetFrameInfo {
+public:
enum StackDirection {
StackGrowsUp, // Adding to the stack increases the stack address
StackGrowsDown // Adding to the stack decreases the stack address
Index: llvm/include/llvm/Target/TargetInstrInfo.h
diff -u llvm/include/llvm/Target/TargetInstrInfo.h:1.72 llvm/include/llvm/Target/TargetInstrInfo.h:1.73
--- llvm/include/llvm/Target/TargetInstrInfo.h:1.72 Tue Sep 28 13:37:00 2004
+++ llvm/include/llvm/Target/TargetInstrInfo.h Wed Oct 27 11:14:51 2004
@@ -61,7 +61,8 @@
// before control flow occurs.
const unsigned M_TERMINATOR_FLAG = 1 << 16;
-struct TargetInstrDescriptor {
+class TargetInstrDescriptor {
+public:
const char * Name; // Assembly language mnemonic for the opcode.
int numOperands; // Number of args; -1 if variable #args
int resultPos; // Position of the result; -1 if no result
Index: llvm/include/llvm/Target/TargetSchedInfo.h
diff -u llvm/include/llvm/Target/TargetSchedInfo.h:1.31 llvm/include/llvm/Target/TargetSchedInfo.h:1.32
--- llvm/include/llvm/Target/TargetSchedInfo.h:1.31 Mon Oct 25 14:07:43 2004
+++ llvm/include/llvm/Target/TargetSchedInfo.h Wed Oct 27 11:14:51 2004
@@ -152,7 +152,8 @@
/// TargetSchedInfo - Common interface to machine information for
/// instruction scheduling
///
-struct TargetSchedInfo {
+class TargetSchedInfo {
+public:
const TargetMachine& target;
unsigned maxNumIssueTotal;
More information about the llvm-commits
mailing list