Skip to content

Commit 1493780

Browse files
committed
Remove duplicate LLVM_NATIVE_ from llvm's config.h
Summary: Since LLVM_NATIVE_ARCH, LLVM_NATIVE_ASMPARSER, LLVM_NATIVE_ASMPRINTER, LLVM_NATIVE_DISASSEMBLER, LLVM_NATIVE_TARGET, LLVM_NATIVE_TARGETINFO and LLVM_NATIVE_TARGETMC are already defined in llvm-config.h, there seems to be no reason to also define them in config.h. Also, I can only find usage of these macros in files that include llvm-config.h. So let's remove the duplicated macros from config.h. Reviewers: chandlerc, rnk, mehdi_amini, joerg Reviewed By: rnk Subscribers: chapuni, mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D33881 llvm-svn: 304714
1 parent 7c0ab86 commit 1493780

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

llvm/include/llvm/Config/config.h.cmake

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -350,27 +350,6 @@
350350
/* Host triple LLVM will be executed on */
351351
#cmakedefine LLVM_HOST_TRIPLE "${LLVM_HOST_TRIPLE}"
352352

353-
/* LLVM architecture name for the native architecture, if available */
354-
#cmakedefine LLVM_NATIVE_ARCH ${LLVM_NATIVE_ARCH}
355-
356-
/* LLVM name for the native AsmParser init function, if available */
357-
#cmakedefine LLVM_NATIVE_ASMPARSER LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser
358-
359-
/* LLVM name for the native AsmPrinter init function, if available */
360-
#cmakedefine LLVM_NATIVE_ASMPRINTER LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter
361-
362-
/* LLVM name for the native Disassembler init function, if available */
363-
#cmakedefine LLVM_NATIVE_DISASSEMBLER LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler
364-
365-
/* LLVM name for the native Target init function, if available */
366-
#cmakedefine LLVM_NATIVE_TARGET LLVMInitialize${LLVM_NATIVE_ARCH}Target
367-
368-
/* LLVM name for the native TargetInfo init function, if available */
369-
#cmakedefine LLVM_NATIVE_TARGETINFO LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo
370-
371-
/* LLVM name for the native target MC init function, if available */
372-
#cmakedefine LLVM_NATIVE_TARGETMC LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC
373-
374353
/* Define if this is Unixish platform */
375354
#cmakedefine LLVM_ON_UNIX ${LLVM_ON_UNIX}
376355

0 commit comments

Comments
 (0)