OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca81740
)
Add `llvm::` in clEnumVal macro (NFC)
author
Mehdi Amini
<mehdi.amini@apple.com>
Fri, 14 Oct 2016 03:54:46 +0000
(
03:54
+0000)
committer
Mehdi Amini
<mehdi.amini@apple.com>
Fri, 14 Oct 2016 03:54:46 +0000
(
03:54
+0000)
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
include/llvm/Support/CommandLine.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/CommandLine.h
b/include/llvm/Support/CommandLine.h
index
c20765d
..
692e16d
100644
(file)
--- 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.