summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2011-09-30 13:07:47 +0000
committerTorok Edwin <edwintorok@gmail.com>2011-09-30 13:07:47 +0000
commitbe5020eb953bcc062a9e77bd9d96cccc1b0d46cc (patch)
treec49abd3430a61725c495888a2bca5d928cc4fb67
parent3111d11f2392dbc9858818e1f927d7204a863a71 (diff)
downloadbcm5719-llvm-be5020eb953bcc062a9e77bd9d96cccc1b0d46cc.tar.gz
bcm5719-llvm-be5020eb953bcc062a9e77bd9d96cccc1b0d46cc.zip
Comment grammar fixes.
thanks to Duncan. llvm-svn: 140850
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index 3bd1d6071e4..80ecc224810 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -114,11 +114,12 @@ LLVMTargetMachine::LLVMTargetMachine(const Target &T, StringRef Triple,
: TargetMachine(T, Triple, CPU, FS) {
CodeGenInfo = T.createMCCodeGenInfo(Triple, RM, CM);
AsmInfo = T.createMCAsmInfo(Triple);
- // TargetSelect.h moved to different directory between LLVM 2.9 and 3.0,
- // and if the old one gets included then MCAsmInfo will be NULL and we'd crash
- // later.
- // Provide the user a useful error message about whats wrong.
- assert(AsmInfo && "MCAsmInfo not initialized. Make sure you include the correct TargetSelect.h!");
+ // TargetSelect.h moved to a different directory between LLVM 2.9 and 3.0,
+ // and if the old one gets included then MCAsmInfo will be NULL and
+ // we'll crash later.
+ // Provide the user with a useful error message about what's wrong.
+ assert(AsmInfo && "MCAsmInfo not initialized."
+ "Make sure you include the correct TargetSelect.h!");
}
bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
OpenPOWER on IntegriCloud