@@ -328,8 +328,6 @@ static void create_preprocessor(CompilerInstance *Clang)
#endif
-#ifdef ADDPATH_TAKES_4_ARGUMENTS
-
/* Add "Path" to the header search options.
*
* Do not take into account sysroot, i.e., set ignoreSysRoot to true.
@@ -339,19 +337,6 @@ void add_path(HeaderSearchOptions &HSO, string Path)
HSO.AddPath(Path, frontend::Angled, false, true);
}
-#else
-
-/* Add "Path" to the header search options.
- *
- * Do not take into account sysroot, i.e., set IsSysRootRelative to false.
- */
-void add_path(HeaderSearchOptions &HSO, string Path)
-{
- HSO.AddPath(Path, frontend::Angled, true, false, false);
-}
-
-#endif
-
#ifdef HAVE_SETMAINFILEID
template <typename T>
@@ -132,13 +132,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <clang/Basic/TargetInfo.h>]], [[
TargetInfo::CreateTargetInfo(*Diags, TO);
]])], [AC_DEFINE([CREATETARGETINFO_TAKES_POINTER], [],
[Define if TargetInfo::CreateTargetInfo takes pointer])])
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
- [[#include <clang/Lex/HeaderSearchOptions.h>]], [[
- using namespace clang;
- HeaderSearchOptions HSO;
- HSO.AddPath("", frontend::Angled, false, false);
-]])], [AC_DEFINE([ADDPATH_TAKES_4_ARGUMENTS], [],
- [Define if HeaderSearchOptions::AddPath takes 4 arguments])])
AC_EGREP_HEADER([getNumParams],
[clang/AST/CanonicalType.h],
[AC_DEFINE([getNumArgs], [getNumParams],