Mercurial > octave
comparison m4/acinclude.m4 @ 17615:3a7d5d655749
Fix typos in configure tests for LLVM methods (bug #39973)
* acinclude.m4 (OCTAVE_LLVM_CALLINST_ADDATTRIBUTE_API): Add extra pair of
m4 quotes. (OCTAVE_LLVM_FUNCTION_ADDFNATTR_API): Fix typo in LLVM ifdef and
include paths for LLVM header files.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Wed, 09 Oct 2013 01:28:38 -0400 |
parents | 03a666018e0f |
children | 1978a6c76aa9 |
comparison
equal
deleted
inserted
replaced
17614:ce7b9abf6600 | 17615:3a7d5d655749 |
---|---|
1465 AC_DEFUN([OCTAVE_LLVM_CALLINST_ADDATTRIBUTE_API], [ | 1465 AC_DEFUN([OCTAVE_LLVM_CALLINST_ADDATTRIBUTE_API], [ |
1466 AC_CACHE_CHECK([check LLVM::CallInst::addAttribute arg type is llvm::Attributes], | 1466 AC_CACHE_CHECK([check LLVM::CallInst::addAttribute arg type is llvm::Attributes], |
1467 [octave_cv_callinst_addattribute_arg_is_attributes], | 1467 [octave_cv_callinst_addattribute_arg_is_attributes], |
1468 [AC_LANG_PUSH(C++) | 1468 [AC_LANG_PUSH(C++) |
1469 AC_COMPILE_IFELSE( | 1469 AC_COMPILE_IFELSE( |
1470 [AC_LANG_PROGRAM([ | 1470 [AC_LANG_PROGRAM([[ |
1471 #ifdef HAVE_LLVM_IR_FUNCTION_H | 1471 #ifdef HAVE_LLVM_IR_FUNCTION_H |
1472 #include <llvm/IR/Instructions.h> | 1472 #include <llvm/IR/Instructions.h> |
1473 #include <llvm/IR/Attributes.h> | 1473 #include <llvm/IR/Attributes.h> |
1474 #else | 1474 #else |
1475 #include <llvm/Instructions.h> | 1475 #include <llvm/Instructions.h> |
1476 #include <llvm/Attributes.h> | 1476 #include <llvm/Attributes.h> |
1477 #endif | 1477 #endif |
1478 ], [[ | 1478 ]], [[ |
1479 llvm::CallInst *callinst; | 1479 llvm::CallInst *callinst; |
1480 llvm::AttrBuilder attr_builder; | 1480 llvm::AttrBuilder attr_builder; |
1481 attr_builder.addAttribute(llvm::Attributes::StructRet); | 1481 attr_builder.addAttribute(llvm::Attributes::StructRet); |
1482 llvm::Attributes attrs = llvm::Attributes::get(llvm::getGlobalContext(), attr_builder); | 1482 llvm::Attributes attrs = llvm::Attributes::get(llvm::getGlobalContext(), attr_builder); |
1483 callinst->addAttribute (1, attrs); | 1483 callinst->addAttribute (1, attrs); |
1532 AC_CACHE_CHECK([check LLVM::Function::addFnAttr arg type is llvm::Attributes], | 1532 AC_CACHE_CHECK([check LLVM::Function::addFnAttr arg type is llvm::Attributes], |
1533 [octave_cv_function_addfnattr_arg_is_attributes], | 1533 [octave_cv_function_addfnattr_arg_is_attributes], |
1534 [AC_LANG_PUSH(C++) | 1534 [AC_LANG_PUSH(C++) |
1535 AC_COMPILE_IFELSE( | 1535 AC_COMPILE_IFELSE( |
1536 [AC_LANG_PROGRAM([[ | 1536 [AC_LANG_PROGRAM([[ |
1537 #ifdef LLVM_HAVE_IR_FUNCTION_H | 1537 #ifdef HAVE_LLVM_IR_FUNCTION_H |
1538 #include <llvm/Function.h> | 1538 #include <llvm/IR/Function.h> |
1539 #include <llvm/Attributes.h> | 1539 #include <llvm/IR/Attributes.h> |
1540 #else | 1540 #else |
1541 #include <llvm/Function.h> | 1541 #include <llvm/Function.h> |
1542 #include <llvm/Attributes.h> | 1542 #include <llvm/Attributes.h> |
1543 #endif | 1543 #endif |
1544 ]], [[ | 1544 ]], [[ |