summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAditya Kumar <hiraditya@msn.com>2019-09-30 02:46:56 +0000
committerAditya Kumar <hiraditya@msn.com>2019-09-30 02:46:56 +0000
commit9a5e3d39f693049b90ef3cd645d623d2b7a9df0d (patch)
tree247df2743e6bdefdfa6c543baf9729ae252a4a1b
parent6c320b22cd28ec61f35eb28805e7dc4d620f8dbf (diff)
downloadbcm5719-llvm-9a5e3d39f693049b90ef3cd645d623d2b7a9df0d.tar.gz
bcm5719-llvm-9a5e3d39f693049b90ef3cd645d623d2b7a9df0d.zip
Undef the macros after their use
Summary: Reviewers: t.p.northover Subscribers: Differential Revision: https://reviews.llvm.org/D46378 llvm-svn: 373176
-rw-r--r--llvm/include/llvm/MC/MCLinkerOptimizationHint.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/MC/MCLinkerOptimizationHint.h b/llvm/include/llvm/MC/MCLinkerOptimizationHint.h
index f2a1364ad88..003491f32f7 100644
--- 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) {
OpenPOWER on IntegriCloud