[PATCH] D46378: Undef the macros after their use
Aditya Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 2 23:21:16 PDT 2018
hiraditya created this revision.
hiraditya added reviewers: t.p.northover, Eugene.Zelenko.
https://reviews.llvm.org/D46378
Files:
include/llvm/MC/MCLinkerOptimizationHint.h
Index: include/llvm/MC/MCLinkerOptimizationHint.h
===================================================================
--- include/llvm/MC/MCLinkerOptimizationHint.h
+++ include/llvm/MC/MCLinkerOptimizationHint.h
@@ -62,6 +62,7 @@
MCLOHCaseNameToId(AdrpAdd)
MCLOHCaseNameToId(AdrpLdrGot)
.Default(-1);
+#undef MCLOHCaseNameToId
}
static inline StringRef MCLOHIdToName(MCLOHType Kind) {
@@ -77,6 +78,7 @@
MCLOHCaseIdToName(AdrpLdrGot);
}
return StringRef();
+#undef MCLOHCaseIdToName
}
static inline int MCLOHIdToNbArgs(MCLOHType Kind) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46378.144983.patch
Type: text/x-patch
Size: 570 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180503/1b9327db/attachment.bin>
More information about the llvm-commits
mailing list