diff options
| author | Vedant Kumar <vsk@apple.com> | 2016-06-02 17:00:50 +0000 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2016-06-02 17:00:50 +0000 |
| commit | 5c3ff137f19524c40f2b3bc092d3d4ea56dd0f5c (patch) | |
| tree | 3ff78cc0bb9f556a5486d6848caef7d733ccd4cc /llvm/tools | |
| parent | 2084d784dfa4b1657c7e2ce0344f116ef971657e (diff) | |
| download | bcm5719-llvm-5c3ff137f19524c40f2b3bc092d3d4ea56dd0f5c.tar.gz bcm5719-llvm-5c3ff137f19524c40f2b3bc092d3d4ea56dd0f5c.zip | |
[llvm-cov] Use string getters (NFC)
llvm-svn: 271537
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/llvm-cov/TestingSupport.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/tools/llvm-cov/TestingSupport.cpp b/llvm/tools/llvm-cov/TestingSupport.cpp index a662a155255..8353442a7e4 100644 --- a/llvm/tools/llvm-cov/TestingSupport.cpp +++ b/llvm/tools/llvm-cov/TestingSupport.cpp @@ -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, const char *argv[]) { 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; |

