From: Duncan P. N. Exon Smith Date: Tue, 18 Mar 2014 00:39:26 +0000 (+0000) Subject: PGO: Switch to isOSBinFormatMachO() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b3465732fcc2bf11d135d2c13fdb5f810df6667;p=clang PGO: Switch to isOSBinFormatMachO() git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204098 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenPGO.cpp b/lib/CodeGen/CodeGenPGO.cpp index 1d3ee4f8a6..207cb665b0 100644 --- a/lib/CodeGen/CodeGenPGO.cpp +++ b/lib/CodeGen/CodeGenPGO.cpp @@ -213,21 +213,21 @@ static llvm::Constant *getOrInsertRuntimeWriteAtExit(CodeGenModule &CGM) { } static StringRef getCountersSection(const CodeGenModule &CGM) { - if (CGM.getTarget().getTriple().getObjectFormat() == llvm::Triple::MachO) + if (CGM.getTarget().getTriple().isOSBinFormatMachO()) return "__DATA,__llvm_pgo_cnts"; else return "__llvm_pgo_cnts"; } static StringRef getNameSection(const CodeGenModule &CGM) { - if (CGM.getTarget().getTriple().getObjectFormat() == llvm::Triple::MachO) + if (CGM.getTarget().getTriple().isOSBinFormatMachO()) return "__DATA,__llvm_pgo_names"; else return "__llvm_pgo_names"; } static StringRef getDataSection(const CodeGenModule &CGM) { - if (CGM.getTarget().getTriple().getObjectFormat() == llvm::Triple::MachO) + if (CGM.getTarget().getTriple().isOSBinFormatMachO()) return "__DATA,__llvm_pgo_data"; else return "__llvm_pgo_data";