From: Mehdi Amini Date: Fri, 14 Oct 2016 03:54:46 +0000 (+0000) Subject: Add `llvm::` in clEnumVal macro (NFC) X-Git-Tag: android-x86-7.1-r4~25802 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=15a3555c6d39d2b5926b306e4d24bce0cf4d390b;p=android-x86%2Fexternal-llvm.git Add `llvm::` in clEnumVal macro (NFC) This allows to use llvm:cl::opt without `using namespace llvm;` git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284190 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index c20765d5d7f..692e16df041 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -565,9 +565,9 @@ struct OptionEnumValue { }; #define clEnumVal(ENUMVAL, DESC) \ - cl::OptionEnumValue { #ENUMVAL, int(ENUMVAL), DESC } + llvm::cl::OptionEnumValue { #ENUMVAL, int(ENUMVAL), DESC } #define clEnumValN(ENUMVAL, FLAGNAME, DESC) \ - cl::OptionEnumValue { FLAGNAME, int(ENUMVAL), DESC } + llvm::cl::OptionEnumValue { FLAGNAME, int(ENUMVAL), DESC } // values - For custom data types, allow specifying a group of values together // as the values that go into the mapping that the option handler uses.