modules: Move ProfileKinds to an anonymous namespace
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 16 Jun 2015 00:43:04 +0000 (00:43 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 16 Jun 2015 00:43:04 +0000 (00:43 +0000)
Fix a build failure with `LLVM_ENABLE_MODULES` due to
`ProfileData::instr` conflicting with a function `instr()` in
`<curses.h>`.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239793 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-profdata/llvm-profdata.cpp

index 1bfdb181d7a9c6e8a241661d97a8a2c748aa95bf..6fb48d8fad589c5c00586e8a2fbe011327c87ce2 100644 (file)
@@ -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<std::string> &Inputs,
                               StringRef OutputFilename) {