From: Duncan P. N. Exon Smith Date: Tue, 16 Jun 2015 00:43:04 +0000 (+0000) Subject: modules: Move ProfileKinds to an anonymous namespace X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4aee54eb9596eeac14f7b15cf55db4a67ffa78c2;p=llvm 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 --- 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) {