From e1f094546d40c9f563b5a0140ac3c3077a669be9 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Fri, 14 Oct 2016 03:54:46 +0000 Subject: [PATCH] Add `llvm::` in clEnumVal macro (NFC) This allows to use llvm:cl::opt without `using namespace llvm;` llvm-svn: 284190 --- llvm/include/llvm/Support/CommandLine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h index c20765d..692e16d 100644 --- a/llvm/include/llvm/Support/CommandLine.h +++ b/llvm/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. -- 2.7.4