diff options
author | Chris Lattner <sabre@nondot.org> | 2005-09-08 18:22:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-09-08 18:22:35 +0000 |
commit | 69b545e8778c7ce54c62baa87a573494bf927eff (patch) | |
tree | c85e3fc088b9f74c4fbbd95b1239b46ed2690bd8 /utils/TableGen/FileParser.y | |
parent | fbf8e57639cacba2a4be13400f5768cd3a10fd17 (diff) | |
download | external_llvm-69b545e8778c7ce54c62baa87a573494bf927eff.zip external_llvm-69b545e8778c7ce54c62baa87a573494bf927eff.tar.gz external_llvm-69b545e8778c7ce54c62baa87a573494bf927eff.tar.bz2 |
Tabs to spaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23270 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/FileParser.y')
-rw-r--r-- | utils/TableGen/FileParser.y | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/utils/TableGen/FileParser.y b/utils/TableGen/FileParser.y index 4dbd84a..47a525a 100644 --- a/utils/TableGen/FileParser.y +++ b/utils/TableGen/FileParser.y @@ -153,8 +153,8 @@ static void addSubClass(Record *SC, const std::vector<Init*> &TemplateArgs) { // value or leaving them as the default if necessary. for (unsigned i = 0, e = TArgs.size(); i != e; ++i) { if (i < TemplateArgs.size()) { // A value is specified for this temp-arg? - // Set it now. - setValue(TArgs[i], 0, TemplateArgs[i]); + // Set it now. + setValue(TArgs[i], 0, TemplateArgs[i]); // Resolve it next. CurRec->resolveReferencesTo(CurRec->getValue(TArgs[i])); @@ -164,10 +164,10 @@ static void addSubClass(Record *SC, const std::vector<Init*> &TemplateArgs) { CurRec->removeValue(TArgs[i]); } else if (!CurRec->getValue(TArgs[i])->getValue()->isComplete()) { - err() << "ERROR: Value not specified for template argument #" - << i << " (" << TArgs[i] << ") of subclass '" << SC->getName() - << "'!\n"; - exit(1); + err() << "ERROR: Value not specified for template argument #" + << i << " (" << TArgs[i] << ") of subclass '" << SC->getName() + << "'!\n"; + exit(1); } } } @@ -268,9 +268,9 @@ Value : INTVAL { for (unsigned i = 0, e = $2->size(); i != e; ++i) { struct Init *Bit = (*$2)[i]->convertInitializerTo(new BitRecTy()); if (Bit == 0) { - err() << "Element #" << i << " (" << *(*$2)[i] - << ") is not convertable to a bit!\n"; - exit(1); + err() << "Element #" << i << " (" << *(*$2)[i] + << ") is not convertable to a bit!\n"; + exit(1); } Init->setBit($2->size()-i-1, Bit); } @@ -515,14 +515,14 @@ ObjectBody : OptID { } OptTemplateArgList ClassList { ParsingTemplateArgs = false; for (unsigned i = 0, e = $4->size(); i != e; ++i) { - addSubClass((*$4)[i].first, *(*$4)[i].second); + addSubClass((*$4)[i].first, *(*$4)[i].second); // Delete the template arg values for the class delete (*$4)[i].second; } delete $4; // Delete the class list... - // Process any variables on the set stack... - for (unsigned i = 0, e = LetStack.size(); i != e; ++i) + // Process any variables on the set stack... + for (unsigned i = 0, e = LetStack.size(); i != e; ++i) for (unsigned j = 0, e = LetStack[i].size(); j != e; ++j) setValue(LetStack[i][j].Name, LetStack[i][j].HasBits ? &LetStack[i][j].Bits : 0, |