[llvm] r271537 - [llvm-cov] Use string getters (NFC)

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 2 10:00:50 PDT 2016


Author: vedantk
Date: Thu Jun  2 12:00:50 2016
New Revision: 271537

URL: http://llvm.org/viewvc/llvm-project?rev=271537&view=rev
Log:
[llvm-cov] Use string getters (NFC)

Modified:
    llvm/trunk/tools/llvm-cov/TestingSupport.cpp

Modified: llvm/trunk/tools/llvm-cov/TestingSupport.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-cov/TestingSupport.cpp?rev=271537&r1=271536&r2=271537&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-cov/TestingSupport.cpp (original)
+++ llvm/trunk/tools/llvm-cov/TestingSupport.cpp Thu Jun  2 12:00:50 2016
@@ -8,6 +8,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Object/ObjectFile.h"
+#include "llvm/ProfileData/InstrProf.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/LEB128.h"
 #include "llvm/Support/ManagedStatic.h"
@@ -58,9 +59,9 @@ int convertForTestingMain(int argc, cons
     StringRef Name;
     if (Section.getName(Name))
       return 1;
-    if (Name == "__llvm_prf_names") {
+    if (Name == llvm::getInstrProfNameSectionName(false)) {
       ProfileNames = Section;
-    } else if (Name == "__llvm_covmap") {
+    } else if (Name == llvm::getInstrProfCoverageSectionName(false)) {
       CoverageMapping = Section;
     } else
       continue;




More information about the llvm-commits mailing list