Fix LLVM target initialization to deal with sociopathic outside projects

that like to randomly define things like "X86", regenerate autoconf bits
and update cmake.

Fixes PR7852.

Patch by Xerxes Rånby!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112499 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher
2010-08-30 18:34:48 +00:00
parent 2027362e8d
commit 753f3265da
9 changed files with 75 additions and 46 deletions

View File

@@ -52,8 +52,14 @@
/* LLVM architecture name for the native architecture, if available */
#undef LLVM_NATIVE_ARCH
/* Short LLVM architecture name for the native architecture, if available */
#undef LLVM_NATIVE_ARCHNAME
/* LLVM name for the native Target init function, if available */
#undef LLVM_NATIVE_TARGET
/* LLVM name for the native TargetInfo init function, if available */
#undef LLVM_NATIVE_TARGETINFO
/* LLVM name for the native AsmPrinter init function, if available */
#undef LLVM_NATIVE_ASMPRINTER
/* Define if this is Unixish platform */
#undef LLVM_ON_UNIX