瀏覽代碼

Fix typos.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209164 91177308-0d34-0410-b5e6-96231b3b80d8
Eric Christopher 11 年之前
父節點
當前提交
b39cae9b15
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 1
      lib/CodeGen/LLVMTargetMachine.cpp
  2. 1 2
      utils/TableGen/PseudoLoweringEmitter.cpp

+ 2 - 1
lib/CodeGen/LLVMTargetMachine.cpp

@@ -98,7 +98,8 @@ static MCContext *addPassesToGenerateCode(LLVMTargetMachine *TM,
   // Add internal analysis passes from the target machine.
   // Add internal analysis passes from the target machine.
   TM->addAnalysisPasses(PM);
   TM->addAnalysisPasses(PM);
 
 
-  // Targets may override createPassConfig to provide a target-specific sublass.
+  // Targets may override createPassConfig to provide a target-specific
+  // subclass.
   TargetPassConfig *PassConfig = TM->createPassConfig(PM);
   TargetPassConfig *PassConfig = TM->createPassConfig(PM);
   PassConfig->setStartStopPasses(StartAfter, StopAfter);
   PassConfig->setStartStopPasses(StartAfter, StopAfter);
 
 

+ 1 - 2
utils/TableGen/PseudoLoweringEmitter.cpp

@@ -157,8 +157,7 @@ void PseudoLoweringEmitter::evaluateExpansion(Record *Rec) {
 
 
   // If there are more operands that weren't in the DAG, they have to
   // If there are more operands that weren't in the DAG, they have to
   // be operands that have default values, or we have an error. Currently,
   // be operands that have default values, or we have an error. Currently,
-  // Operands that are a sublass of OperandWithDefaultOp have default values.
-
+  // Operands that are a subclass of OperandWithDefaultOp have default values.
 
 
   // Validate that each result pattern argument has a matching (by name)
   // Validate that each result pattern argument has a matching (by name)
   // argument in the source instruction, in either the (outs) or (ins) list.
   // argument in the source instruction, in either the (outs) or (ins) list.