diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-03-18 00:39:26 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-03-18 00:39:26 +0000 |
| commit | 2b3465732fcc2bf11d135d2c13fdb5f810df6667 (patch) | |
| tree | 1cc48d39b5457e56a1289deb1b845567013b1498 /lib/CodeGen/CodeGenPGO.cpp | |
| parent | cbf2455a01d5df877b84443e96d9e0ae61633c14 (diff) | |
| download | clang-2b3465732fcc2bf11d135d2c13fdb5f810df6667.tar.gz clang-2b3465732fcc2bf11d135d2c13fdb5f810df6667.tar.bz2 clang-2b3465732fcc2bf11d135d2c13fdb5f810df6667.tar.xz | |
PGO: Switch to isOSBinFormatMachO()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204098 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenPGO.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenPGO.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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"; |
