summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xllvm/utils/gn/secondary/llvm/include/llvm/Support/write_extension_def.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/utils/gn/secondary/llvm/include/llvm/Support/write_extension_def.py b/llvm/utils/gn/secondary/llvm/include/llvm/Support/write_extension_def.py
index 768e57db664..9cd1dd0f2cc 100755
--- a/llvm/utils/gn/secondary/llvm/include/llvm/Support/write_extension_def.py
+++ b/llvm/utils/gn/secondary/llvm/include/llvm/Support/write_extension_def.py
@@ -13,6 +13,7 @@ def main():
args = parser.parse_args()
output = ''.join(['HANDLE_EXTENSION(%s)\n' % ext for ext in args.exts])
+ output += '#undef HANDLE_EXTENSION\n'
if not os.path.exists(args.output) or open(args.output).read() != output:
open(args.output, 'w').write(output)
OpenPOWER on IntegriCloud