projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c320b2
)
Undef the macros after their use
author
Aditya Kumar
<hiraditya@msn.com>
Mon, 30 Sep 2019 02:46:56 +0000
(
02:46
+0000)
committer
Aditya Kumar
<hiraditya@msn.com>
Mon, 30 Sep 2019 02:46:56 +0000
(
02:46
+0000)
Summary:
Reviewers:
t.p.northover
Subscribers:
Differential Revision: https://reviews.llvm.org/D46378
llvm-svn: 373176
llvm/include/llvm/MC/MCLinkerOptimizationHint.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/MC/MCLinkerOptimizationHint.h
b/llvm/include/llvm/MC/MCLinkerOptimizationHint.h
index
f2a1364
..
003491f
100644
(file)
--- a/
llvm/include/llvm/MC/MCLinkerOptimizationHint.h
+++ b/
llvm/include/llvm/MC/MCLinkerOptimizationHint.h
@@
-61,6
+61,7
@@
static inline int MCLOHNameToId(StringRef Name) {
MCLOHCaseNameToId(AdrpAdd)
MCLOHCaseNameToId(AdrpLdrGot)
.Default(-1);
+#undef MCLOHCaseNameToId
}
static inline StringRef MCLOHIdToName(MCLOHType Kind) {
@@
-76,6
+77,7
@@
static inline StringRef MCLOHIdToName(MCLOHType Kind) {
MCLOHCaseIdToName(AdrpLdrGot);
}
return StringRef();
+#undef MCLOHCaseIdToName
}
static inline int MCLOHIdToNbArgs(MCLOHType Kind) {