File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,11 @@ void parseCommandLine(Strings &sourceFiles) {
322322 if (auto target = lookupTarget (" " , triple, errMsg)) {
323323 llvm::errs () << " Targeting " << target->getName () << " . " ;
324324 // this prints the available CPUs and features of the target to stderr...
325+ #if LDC_LLVM_VER >= 2300
326+ target->createMCSubtargetInfo (triple, " help" , " " );
327+ #else
325328 target->createMCSubtargetInfo (cfg_triple, " help" , " " );
329+ #endif
326330 } else {
327331 error (Loc (), " %s" , errMsg.c_str ());
328332 fatal ();
Original file line number Diff line number Diff line change 2525#include " llvm/Support/CommandLine.h"
2626#include " llvm/Support/DynamicLibrary.h"
2727#include " llvm/ADT/SmallVector.h"
28+ #if LDC_LLVM_VER >= 2300
29+ #include " llvm/Plugins/PassPlugin.h"
30+ #else
2831#include " llvm/Passes/PassPlugin.h"
32+ #endif
2933#include " llvm/Support/Error.h"
3034
3135#include " driver/cl_options.h"
You can’t perform that action at this time.
0 commit comments