[llvm-commits] CVS: llvm-java/lib/Compiler/Class.h Class.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Fri Mar 25 21:24:16 PST 2005
Changes in directory llvm-java/lib/Compiler:
Class.h updated: 1.5 -> 1.6
Class.cpp updated: 1.5 -> 1.6
---
Log message:
Rename member variable.
---
Diffs of the changes: (+4 -4)
Class.cpp | 6 +++---
Class.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
Index: llvm-java/lib/Compiler/Class.h
diff -u llvm-java/lib/Compiler/Class.h:1.5 llvm-java/lib/Compiler/Class.h:1.6
--- llvm-java/lib/Compiler/Class.h:1.5 Fri Mar 25 22:32:07 2005
+++ llvm-java/lib/Compiler/Class.h Fri Mar 25 23:24:05 2005
@@ -38,7 +38,7 @@
typedef std::map<std::string, int> Field2IndexMap;
Field2IndexMap f2iMap_;
typedef std::vector<const Type*> ElementTypes;
- ElementTypes elementTypes;
+ ElementTypes elementTypes_;
void addField(const std::string& name, const Type* type);
void resolveType();
Index: llvm-java/lib/Compiler/Class.cpp
diff -u llvm-java/lib/Compiler/Class.cpp:1.5 llvm-java/lib/Compiler/Class.cpp:1.6
--- llvm-java/lib/Compiler/Class.cpp:1.5 Fri Mar 25 22:32:07 2005
+++ llvm-java/lib/Compiler/Class.cpp Fri Mar 25 23:24:05 2005
@@ -63,8 +63,8 @@
void Class::addField(const std::string& name, const Type* type)
{
- f2iMap_.insert(std::make_pair(name, elementTypes.size()));
- elementTypes.push_back(type);
+ f2iMap_.insert(std::make_pair(name, elementTypes_.size()));
+ elementTypes_.push_back(type);
}
int Class::getFieldIndex(const std::string& name) const {
@@ -74,7 +74,7 @@
void Class::resolveType() {
PATypeHolder holder = structType_;
- Type* resolvedType = StructType::get(elementTypes);
+ Type* resolvedType = StructType::get(elementTypes_);
cast<OpaqueType>(structType_)->refineAbstractTypeTo(resolvedType);
structType_ = holder.get();
type_ = PointerType::get(structType_);
More information about the llvm-commits
mailing list