diff options
author | Cédric Venet <cedric.venet@laposte.net> | 2009-02-14 16:06:42 +0000 |
---|---|---|
committer | Cédric Venet <cedric.venet@laposte.net> | 2009-02-14 16:06:42 +0000 |
commit | ee2a3eb01b2d0f66b49bfb7d705ef36751bfc5ff (patch) | |
tree | 8420d6eb1201329b36131b7875e079d1292f0d03 /utils/TableGen | |
parent | 555ddcff7291272adc65a0a44ec849e187ee1981 (diff) | |
download | external_llvm-ee2a3eb01b2d0f66b49bfb7d705ef36751bfc5ff.zip external_llvm-ee2a3eb01b2d0f66b49bfb7d705ef36751bfc5ff.tar.gz external_llvm-ee2a3eb01b2d0f66b49bfb7d705ef36751bfc5ff.tar.bz2 |
Unbreak the build on win32.
Cleanup some warning.
Remark: when struct/class are declared differently than they are defined, this make problem for VC++ since it seems to mangle class differently that struct. These error are very hard to understand and find. So please, try to keep your definition/declaration in sync.
Only tested with VS2008. hope it does not break anything. feel free to revert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64554 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r-- | utils/TableGen/TGParser.cpp | 2 | ||||
-rw-r--r-- | utils/TableGen/TGParser.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/TGParser.cpp b/utils/TableGen/TGParser.cpp index 4ff108d..1ea6b98 100644 --- a/utils/TableGen/TGParser.cpp +++ b/utils/TableGen/TGParser.cpp @@ -124,7 +124,7 @@ bool TGParser::SetValue(Record *CurRec, LocTy Loc, const std::string &ValName, /// AddSubClass - Add SubClass as a subclass to CurRec, resolving its template /// args as SubClass's template arguments. -bool TGParser::AddSubClass(Record *CurRec, class SubClassReference &SubClass) { +bool TGParser::AddSubClass(Record *CurRec, SubClassReference &SubClass) { Record *SC = SubClass.Rec; // Add all of the values in the subclass into the current class. const std::vector<RecordVal> &Vals = SC->getValues(); diff --git a/utils/TableGen/TGParser.h b/utils/TableGen/TGParser.h index fd33aec..edbc4c1 100644 --- a/utils/TableGen/TGParser.h +++ b/utils/TableGen/TGParser.h @@ -23,7 +23,7 @@ namespace llvm { struct RecTy; struct Init; struct MultiClass; - struct SubClassReference; + class SubClassReference; struct LetRecord { std::string Name; @@ -66,7 +66,7 @@ private: // Semantic analysis methods. bool AddValue(Record *TheRec, LocTy Loc, const RecordVal &RV); bool SetValue(Record *TheRec, LocTy Loc, const std::string &ValName, const std::vector<unsigned> &BitList, Init *V); - bool AddSubClass(Record *Rec, class SubClassReference &SubClass); + bool AddSubClass(Record *Rec, SubClassReference &SubClass); private: // Parser methods. bool ParseObjectList(); |