summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenPGO.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/CodeGenPGO.cpp')
-rw-r--r--lib/CodeGen/CodeGenPGO.cpp6
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";