[llvm] r239793 - modules: Move ProfileKinds to an anonymous namespace
Duncan P. N. Exon Smith
dexonsmith at apple.com
Mon Jun 15 17:43:04 PDT 2015
Author: dexonsmith
Date: Mon Jun 15 19:43:04 2015
New Revision: 239793
URL: http://llvm.org/viewvc/llvm-project?rev=239793&view=rev
Log:
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
`<curses.h>`.
Modified:
llvm/trunk/tools/llvm-profdata/llvm-profdata.cpp
Modified: llvm/trunk/tools/llvm-profdata/llvm-profdata.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-profdata/llvm-profdata.cpp?rev=239793&r1=239792&r2=239793&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-profdata/llvm-profdata.cpp (original)
+++ llvm/trunk/tools/llvm-profdata/llvm-profdata.cpp Mon Jun 15 19:43:04 2015
@@ -37,7 +37,9 @@ static void exitWithError(const Twine &M
::exit(1);
}
+namespace {
enum ProfileKinds { instr, sample };
+}
static void mergeInstrProfile(const cl::list<std::string> &Inputs,
StringRef OutputFilename) {
More information about the llvm-commits
mailing list