mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-18 05:05:22 +02:00
Replace llvm::sys::Path with std::string.
In many cases this is straightforward. It makes the source LLVM 3.4 compatible without using #idef's.
This commit is contained in:
@@ -14,8 +14,6 @@
|
||||
#ifndef LDC_GEN_PROGRAMS_H
|
||||
#define LDC_GEN_PROGRAMS_H
|
||||
|
||||
#if LDC_LLVM_VER >= 304
|
||||
|
||||
#include <string>
|
||||
|
||||
std::string getGcc();
|
||||
@@ -25,17 +23,4 @@ std::string getArchiver();
|
||||
std::string getLink();
|
||||
std::string getLib();
|
||||
|
||||
#else
|
||||
|
||||
#include "llvm/Support/Path.h"
|
||||
|
||||
llvm::sys::Path getGcc();
|
||||
llvm::sys::Path getArchiver();
|
||||
|
||||
// For Windows with MS tool chain
|
||||
llvm::sys::Path getLink();
|
||||
llvm::sys::Path getLib();
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user