[PATCH] D46378: Undef the macros after their use
Aditya Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 3 10:43:22 PDT 2018
hiraditya updated this revision to Diff 145043.
hiraditya added a comment.
return {}.
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) {
@@ -76,7 +77,8 @@
MCLOHCaseIdToName(AdrpAdd);
MCLOHCaseIdToName(AdrpLdrGot);
}
- return StringRef();
+ return {};
+#undef MCLOHCaseIdToName
}
static inline int MCLOHIdToNbArgs(MCLOHType Kind) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46378.145043.patch
Type: text/x-patch
Size: 617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180503/f09a8b4f/attachment.bin>
More information about the llvm-commits
mailing list