ADT/Triple: Switch to using .isOSDarwin() predicate.

llvm-svn: 129823
This commit is contained in:
Daniel Dunbar
2011-04-19 21:43:27 +00:00
parent 2b059998f7
commit 14ad22f09d
8 changed files with 52 additions and 49 deletions

View File

@@ -150,7 +150,7 @@ void CodeGenModule::DecorateInstruction(llvm::Instruction *Inst,
}
bool CodeGenModule::isTargetDarwin() const {
return getContext().Target.getTriple().getOS() == llvm::Triple::Darwin;
return getContext().Target.getTriple().isOSDarwin();
}
void CodeGenModule::Error(SourceLocation loc, llvm::StringRef error) {