From 83fdc2e5ada053494d43d76d73aa2ce8d1a2e0c6 Mon Sep 17 00:00:00 2001 From: "james.brodman" Date: Thu, 3 Jan 2013 13:43:47 -0500 Subject: [PATCH] Fix to build with 3.2. LLVM API Change? --- module.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/module.cpp b/module.cpp index b99153b7..c8f328ba 100644 --- a/module.cpp +++ b/module.cpp @@ -1799,13 +1799,8 @@ Module::execPreprocessor(const char *infilename, llvm::raw_string_ostream *ostre } options.Triple = triple.getTriple(); -#if defined(LLVM_3_0) || defined(LLVM_3_1) clang::TargetInfo *target = clang::TargetInfo::CreateTargetInfo(inst.getDiagnostics(), options); -#else - clang::TargetInfo *target = - clang::TargetInfo::CreateTargetInfo(inst.getDiagnostics(), &options); -#endif inst.setTarget(target); inst.createSourceManager(inst.getFileManager());