r204098 - PGO: Switch to isOSBinFormatMachO()

Duncan P. N. Exon Smith dexonsmith at apple.com
Mon Mar 17 17:39:26 PDT 2014


Author: dexonsmith
Date: Mon Mar 17 19:39:26 2014
New Revision: 204098

URL: http://llvm.org/viewvc/llvm-project?rev=204098&view=rev
Log:
PGO: Switch to isOSBinFormatMachO()

Modified:
    cfe/trunk/lib/CodeGen/CodeGenPGO.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenPGO.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenPGO.cpp?rev=204098&r1=204097&r2=204098&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenPGO.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenPGO.cpp Mon Mar 17 19:39:26 2014
@@ -213,21 +213,21 @@ static llvm::Constant *getOrInsertRuntim
 }
 
 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";





More information about the cfe-commits mailing list