From: Aditya Kumar Date: Mon, 30 Sep 2019 02:46:56 +0000 (+0000) Subject: Undef the macros after their use X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a98707d75000288601e3319528410bb7d9052d1e;p=llvm Undef the macros after their use Summary: Reviewers: t.p.northover Subscribers: Differential Revision: https://reviews.llvm.org/D46378 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373176 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/MC/MCLinkerOptimizationHint.h b/include/llvm/MC/MCLinkerOptimizationHint.h index f2a1364ad88..003491f32f7 100644 --- a/include/llvm/MC/MCLinkerOptimizationHint.h +++ b/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) {