From 4aee54eb9596eeac14f7b15cf55db4a67ffa78c2 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Tue, 16 Jun 2015 00:43:04 +0000 Subject: [PATCH] modules: Move ProfileKinds to an anonymous namespace Fix a build failure with `LLVM_ENABLE_MODULES` due to `ProfileData::instr` conflicting with a function `instr()` in ``. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239793 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-profdata/llvm-profdata.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/llvm-profdata/llvm-profdata.cpp b/tools/llvm-profdata/llvm-profdata.cpp index 1bfdb181d7a..6fb48d8fad5 100644 --- a/tools/llvm-profdata/llvm-profdata.cpp +++ b/tools/llvm-profdata/llvm-profdata.cpp @@ -37,7 +37,9 @@ static void exitWithError(const Twine &Message, StringRef Whence = "") { ::exit(1); } +namespace { enum ProfileKinds { instr, sample }; +} static void mergeInstrProfile(const cl::list &Inputs, StringRef OutputFilename) { -- 2.34.1