[cmake] Remove AddLLVMDefinitions
authorJay Foad <jay.foad@amd.com>
Mon, 23 Jan 2023 15:00:43 +0000 (15:00 +0000)
committerJay Foad <jay.foad@amd.com>
Tue, 24 Jan 2023 08:27:04 +0000 (08:27 +0000)
This has been unused since D31125.

Differential Revision: https://reviews.llvm.org/D142362

llvm/cmake/modules/AddLLVMDefinitions.cmake [deleted file]

diff --git a/llvm/cmake/modules/AddLLVMDefinitions.cmake b/llvm/cmake/modules/AddLLVMDefinitions.cmake
deleted file mode 100644 (file)
index dab1623..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-# There is no clear way of keeping track of compiler command-line
-# options chosen via `add_definitions', so we need our own method for
-# using it on tools/llvm-config/CMakeLists.txt.
-
-# Beware that there is no implementation of remove_llvm_definitions.
-
-macro(add_llvm_definitions)
-  # We don't want no semicolons on LLVM_DEFINITIONS:
-  foreach(arg ${ARGN})
-    if(DEFINED LLVM_DEFINITIONS)
-      set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${arg}")
-    else()
-      set(LLVM_DEFINITIONS ${arg})
-    endif()
-  endforeach(arg)
-  add_definitions( ${ARGN} )
-endmacro(add_llvm_definitions)