whitespace

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159890 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Trick 2012-07-07 03:59:51 +00:00
parent a11a6287a5
commit 06495cd7f2
2 changed files with 5 additions and 5 deletions

View File

@ -752,7 +752,7 @@ class AsmParser {
def DefaultAsmParser : AsmParser; def DefaultAsmParser : AsmParser;
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// AsmParserVariant - Subtargets can have multiple different assembly parsers // AsmParserVariant - Subtargets can have multiple different assembly parsers
// (e.g. AT&T vs Intel syntax on X86 for example). This class can be // (e.g. AT&T vs Intel syntax on X86 for example). This class can be
// implemented by targets to describe such variants. // implemented by targets to describe such variants.
// //
@ -885,7 +885,7 @@ class Target {
// AssemblyParsers - The AsmParser instances available for this target. // AssemblyParsers - The AsmParser instances available for this target.
list<AsmParser> AssemblyParsers = [DefaultAsmParser]; list<AsmParser> AssemblyParsers = [DefaultAsmParser];
/// AssemblyParserVariants - The AsmParserVariant instances available for /// AssemblyParserVariants - The AsmParserVariant instances available for
/// this target. /// this target.
list<AsmParserVariant> AssemblyParserVariants = [DefaultAsmParserVariant]; list<AsmParserVariant> AssemblyParserVariants = [DefaultAsmParserVariant];

View File

@ -155,18 +155,18 @@ Record *CodeGenTarget::getAsmParser() const {
/// this target. /// this target.
/// ///
Record *CodeGenTarget::getAsmParserVariant(unsigned i) const { Record *CodeGenTarget::getAsmParserVariant(unsigned i) const {
std::vector<Record*> LI = std::vector<Record*> LI =
TargetRec->getValueAsListOfDefs("AssemblyParserVariants"); TargetRec->getValueAsListOfDefs("AssemblyParserVariants");
if (i >= LI.size()) if (i >= LI.size())
throw "Target does not have an AsmParserVariant #" + utostr(i) + "!"; throw "Target does not have an AsmParserVariant #" + utostr(i) + "!";
return LI[i]; return LI[i];
} }
/// getAsmParserVariantCount - Return the AssmblyParserVariant definition /// getAsmParserVariantCount - Return the AssmblyParserVariant definition
/// available for this target. /// available for this target.
/// ///
unsigned CodeGenTarget::getAsmParserVariantCount() const { unsigned CodeGenTarget::getAsmParserVariantCount() const {
std::vector<Record*> LI = std::vector<Record*> LI =
TargetRec->getValueAsListOfDefs("AssemblyParserVariants"); TargetRec->getValueAsListOfDefs("AssemblyParserVariants");
return LI.size(); return LI.size();
} }